:root {
  --color-primary: #0055a4;
  --color-primary-dark: #003b73;
  --color-primary-light: #e6f0fa;
  --color-accent: #ffd100;
  --color-accent-dark: #e6b800;
  --gradient-brand: linear-gradient(135deg, #0055a4 0%, #003b73 100%);
  --gradient-page:
    radial-gradient(1100px 650px at 10% -10%, rgba(0, 91, 187, 0.55), transparent 60%),
    radial-gradient(900px 550px at 105% 5%, rgba(255, 209, 0, 0.5), transparent 55%),
    radial-gradient(750px 550px at 45% 115%, rgba(0, 59, 115, 0.4), transparent 60%),
    linear-gradient(160deg, #dce8fb 0%, #eef1f4 45%, #eef1f4 60%, #ffe79c 100%);
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-text: #171a21;
  --color-text-muted: #5c6270;
  --color-border: #e6e3dd;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-invert-text: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 26, 33, 0.08);
  --shadow-lg: 0 20px 40px rgba(23, 26, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--gradient-page);
  background-attachment: fixed;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body > main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #e9f2fb;
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 85, 164, 0.35);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-accent {
  color: var(--color-accent-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-greeting {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.account-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.account-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: var(--gradient-brand);
  color: var(--color-invert-text);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 209, 0, 0.28), transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(255, 209, 0, 0.18);
  border: 1px solid rgba(255, 209, 0, 0.45);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  --pixel: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  clip-path: polygon(
    0 var(--pixel), var(--pixel) var(--pixel), var(--pixel) 0,
    calc(100% - var(--pixel)) 0, calc(100% - var(--pixel)) var(--pixel), 100% var(--pixel),
    100% calc(100% - var(--pixel)), calc(100% - var(--pixel)) calc(100% - var(--pixel)),
    calc(100% - var(--pixel)) 100%, var(--pixel) 100%, var(--pixel) calc(100% - var(--pixel)),
    0 calc(100% - var(--pixel))
  );
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #1a1400;
  box-shadow: 5px 5px 0 var(--color-primary-dark);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--color-primary-dark);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
  box-shadow: 5px 5px 0 var(--color-accent);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--color-accent);
}

.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-accent);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  box-shadow: 5px 5px 0 var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--color-accent);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-accent);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  box-shadow: 5px 5px 0 #7f1d1d;
}

.btn-danger:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #7f1d1d;
}

.btn-danger:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #7f1d1d;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 4px 0 0;
}

.section-link {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* Gallery / Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  perspective: 1400px;
}

.carousel__track {
  position: relative;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.carousel__photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  overflow: hidden;
  background-size: cover, cover;
  background-position: center, center;
}

.carousel__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 55%);
}

/* Cada slide intenta cargar una foto real de /img/; si no existe, se ve el degradado de respaldo. */
.carousel__photo--1 {
  background-image: url('/img/carousel-1.png'), linear-gradient(135deg, #0055a4 0%, #003b73 100%);
  background-position: center 15%, center;
}

.carousel__photo--2 {
  background-image: url('/img/carousel-2.png'), linear-gradient(135deg, #0055a4 0%, #ffd100 160%);
}

.carousel__photo--3 {
  background-image: url('/img/carousel-3.png'), linear-gradient(135deg, #003b73 0%, #2d7fd6 100%);
  background-position: center 15%, center;
}

.carousel__photo--4 {
  background-image: url('/img/carousel-4.png'), linear-gradient(135deg, #e6b800 0%, #0055a4 150%);
  background-position: center 15%, center;
}

.carousel__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  color: #fff;
  opacity: 0.14;
}

.carousel__caption {
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.carousel__btn--prev {
  left: 16px;
}

.carousel__btn--next {
  right: 16px;
}

.carousel__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel__dot.active {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .carousel__track {
    aspect-ratio: 4 / 5;
  }

  .carousel__photo {
    padding: 20px;
  }

  .carousel__btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.about-grid h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.about-grid p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.about-text {
  background: #fff6d1;
  border: 1px solid #f5e6a3;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.about-card {
  background: #e9f2fb;
  border: 1px solid #cfe2f5;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.about-card__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-card__stat:last-child {
  border-bottom: none;
}

.about-card__stat strong {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 800;
}

.about-card__stat span {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.location-card {
  background: #e9f2fb;
  border: 1px solid #cfe2f5;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.location-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 20px 0 6px;
}

.location-card h3:first-child {
  margin-top: 0;
}

.location-card p {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

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

.location-card a:hover {
  text-decoration: underline;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 280px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

@media (max-width: 820px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing / Schedules */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.pricing-card--blue {
  background: #e9f2fb;
  border-color: #cfe2f5;
}

.pricing-card--yellow {
  background: #fff6d1;
  border-color: #f5e6a3;
}

.pricing-card__header h3 {
  margin: 10px 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.pricing-card__header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.86rem;
}

.schedule-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 8px 6px;
  border-bottom: 2px solid rgba(23, 26, 33, 0.12);
}

.schedule-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(23, 26, 33, 0.08);
  font-weight: 600;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.pricing-card__amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
}

.pricing-card__period {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.pricing-card__note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

.inscription-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inscription-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.inscription-cta__text h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
}

.inscription-cta__text p {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.inscription-cta__text p:last-child {
  margin-bottom: 0;
}

/* Event cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.events-grid .event-card:nth-child(odd) {
  background: #e9f2fb;
  border-color: #cfe2f5;
}

.events-grid .event-card:nth-child(even) {
  background: #fff6d1;
  border-color: #f5e6a3;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.event-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.event-badge--evento {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.event-badge--competencia {
  background: #fff2ae;
  color: #7a5c00;
}

.event-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.event-card__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.event-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.event-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.event-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
}

/* Event detail */
.event-detail {
  background: #fff6d1;
  border: 1px solid #f5e6a3;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.event-detail h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 12px 0 18px;
  letter-spacing: -0.01em;
}

.event-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}

.event-detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-detail__meta-item span:first-child {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  font-weight: 700;
}

.event-detail__meta-item span:last-child {
  font-weight: 600;
}

.event-detail__desc {
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

.status-note {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.status-note--success {
  color: var(--color-success);
  font-weight: 600;
}

/* Forms */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #e9f2fb;
  border: 1px solid #cfe2f5;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.auth-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.auth-card__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 16px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-card__footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 20px 0 0;
}

.auth-card__footer a {
  color: var(--color-primary);
  font-weight: 700;
}

.error-banner {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.success-banner {
  background: var(--color-success-bg);
  border: 1px solid #bbf7d0;
  color: var(--color-success);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-inquiries {
  margin-top: 28px;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--color-border);
  flex-wrap: wrap;
}

.admin-tab {
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.panel--blue {
  background: #e9f2fb;
  border-color: #cfe2f5;
}

.panel--yellow {
  background: #fff6d1;
  border-color: #f5e6a3;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-event-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.admin-event-row:last-child {
  border-bottom: none;
}

.admin-event-row__info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.admin-event-row__info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.admin-event-row__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-event-row__actions button {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.registrations-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.registrations-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}

.registrations-list li:last-child {
  border-bottom: none;
}

/* Videos */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.video-card__body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 26, 33, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  width: 100%;
  max-width: 440px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal__header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0 4px;
}

.modal__close:hover {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
}

.site-footer__note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.site-footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.site-footer__contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.site-footer__social svg {
  width: 19px;
  height: 19px;
}

/* Responsive */
@media (max-width: 860px) {
  .site-header .container {
    height: auto;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .account-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #e9f2fb;
    border-bottom: 3px solid var(--color-accent);
    padding: 8px 20px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 10px 0;
    width: 100%;
  }

  .hero {
    padding: 48px 0 56px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .auth-page {
    padding: 32px 16px;
  }

  .auth-card,
  .event-detail {
    padding: 24px;
  }

  .panel {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inscription-cta {
    justify-content: center;
    text-align: center;
  }

  .admin-event-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-event-row__actions {
    flex-wrap: wrap;
  }

  .event-tabs {
    flex-wrap: wrap;
  }
}
