/*
  Base styles for Sistema de Eventos
  - Palette extracted from provided image
*/

:root {
  --color-primary-900: #611232; /* deep maroon */
  --color-primary-700: #9d2449; /* crimson */
  --color-accent-700: #a57f2c;  /* mustard */
  --color-accent-500: #BC955C;  /* warm gold */
  --color-neutral-050: #FFFFFF; /* white */
  --color-neutral-200: #DDC9A3; /* beige */
  --color-neutral-500: #98989A; /* gray */
  --color-emerald-900: #13322e; /* deep emerald */
}

/* CSS Reset (lightweight) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { 
  margin: 0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; 
  color: var(--color-emerald-900); 
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #f8f8f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Video de fondo principal */
#videoFondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Ajusta la opacidad según necesites */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Layout */
.container { width: min(1100px, 92%); margin-inline: auto; position: relative; z-index: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--color-primary-900); color: #fff; border-bottom: 4px solid var(--color-accent-500); }
.site-header .brand { display: flex; align-items: center; gap: .75rem; padding: .9rem 0; font-weight: 700; letter-spacing: .2px; }
.site-nav { display: flex; gap: 1rem; align-items: center; }
.site-nav a { padding: .5rem .75rem; border-radius: .375rem; color: #fff; }
.site-nav a:hover { background: color-mix(in srgb, var(--color-primary-700) 75%, black 0%); }

/* Hero - Rediseño Moderno */
.hero { 
  padding: 4rem 0 3rem; 
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, #7a1d38 100%);
  color: #fff; 
  position: relative;
  overflow: hidden;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 { 
  margin: 0 0 .75rem; 
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem); 
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero p { 
  margin: 0; 
  opacity: .95; 
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons - Rediseño Moderno con Micro-interacciones */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: .5rem; 
  padding: .75rem 1.5rem; 
  border-radius: .625rem; 
  border: 0; 
  cursor: pointer; 
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:active { 
  transform: scale(0.98); 
}

.btn-primary { 
  background: linear-gradient(135deg, var(--color-accent-700) 0%, #b8892a 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(165, 127, 44, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 127, 44, 0.5);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline { 
  background: transparent; 
  color: #fff; 
  outline: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 2px 8px rgba(255,255,255,.1);
}

.btn-outline:hover { 
  background: rgba(255,255,255,.15);
  outline-color: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(255,255,255,.2);
}

/* Cards - Rediseño Moderno con Scroll Horizontal Automático */
.eventos-section {
  position: relative;
  padding: 2.5rem 0;
}

.eventos-section .container {
  max-width: 100%;
  width: 100%;
  padding: 0 1.5rem;
}

@media (min-width: 1400px) {
  .eventos-section .container {
    max-width: 100%;
    padding: 0 2rem;
  }
}

.cards { 
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-700) rgba(157, 36, 73, 0.1);
  /* Ocultar scrollbar pero mantener funcionalidad */
  -ms-overflow-style: none;
  width: 100%;
}

.cards::-webkit-scrollbar {
  height: 8px;
}

.cards::-webkit-scrollbar-track {
  background: rgba(157, 36, 73, 0.05);
  border-radius: 10px;
}

.cards::-webkit-scrollbar-thumb {
  background: var(--color-primary-700);
  border-radius: 10px;
}

.cards::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-900);
}

/* Evitar que las cards se encojan - MÁS ANCHAS Y MENOS ALTAS */
.cards .card {
  flex: 0 0 auto;
  width: 650px;
  min-width: 650px;
  min-height: auto; /* Permitir que crezcan según contenido */
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .cards .card {
    width: 90vw;
    min-width: 90vw;
    max-width: 520px;
  }
  
  .eventos-section .container {
    padding: 0 1rem;
  }
  
  .eventos-section {
    padding: 1.5rem 0;
  }
  
  .cards {
    gap: 1.25rem;
    padding: 0.75rem 0;
  }
  
  /* Grid de fechas responsive para tablets también */
  .fechas-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* Ajustar padding en secciones de información para tablets */
  .cards .card [style*="padding: 1.5rem 2rem"] {
    padding: 1.25rem 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .cards .card {
    width: 95vw;
    min-width: 95vw;
    max-width: none;
  }
  
  .eventos-section .container {
    padding: 0 0.75rem;
  }
}

.card { 
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border: 1px solid rgba(97, 18, 50, 0.12);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 8px 30px rgba(0,0,0,.06),
    0 2px 8px rgba(0,0,0,.04),
    0 0 0 1px rgba(97, 18, 50, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: cardFadeIn 0.6s ease-out both;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500), var(--color-primary-700));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(97, 18, 50, 0.15),
    0 8px 16px rgba(0,0,0,.1),
    0 0 0 1px rgba(97, 18, 50, 0.05);
  border-color: var(--color-primary-700);
}

.card .card-header { 
  padding: 2rem 2.5rem 1.5rem; 
  font-weight: 700; 
  color: var(--color-primary-900); 
  border-bottom: 2px solid rgba(157, 36, 73, 0.08); 
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(250,250,250,1) 100%);
  font-size: 1.35rem;
  position: relative;
  line-height: 1.4;
}

.card .card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
  border-radius: 0 3px 3px 0;
}

.card .card-body { 
  color: #2c2c2c;
  position: relative;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

/* Eventos Section - Estilos Mejorados */
.eventos-section {
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out;
}

.section-title {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-900);
  text-shadow: 0 2px 4px rgba(0,0,0,.05);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
  border-radius: 2px;
}

.loading-events {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-neutral-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-neutral-200);
  border-radius: 50%;
  border-top-color: var(--color-primary-700);
  animation: spin 1s linear infinite;
}

.sin-eventos-message {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(145deg, rgba(221, 201, 163, 0.2), rgba(221, 201, 163, 0.1));
  border-radius: 1rem;
  border: 2px dashed rgba(157, 36, 73, 0.3);
  color: var(--color-neutral-500);
  font-size: 1.1rem;
}

.sin-eventos-message p {
  margin: 0;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out;
}

.btn-back {
  margin-bottom: 1.5rem;
}

.evento-selected-title {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  color: var(--color-primary-900);
  font-weight: 700;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.evento-selected-desc {
  color: var(--color-neutral-500);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Horarios Grid */
.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* Asegurar que los horarios por día también tengan buen espaciado */
.horarios-del-dia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dia-horario-section {
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 2rem;
}

.dia-horario-section h4 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  padding: 0;
}

.horario-card {
  padding: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border-radius: 0.75rem;
  border: 2px solid rgba(157, 36, 73, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  box-sizing: border-box;
  min-width: 0;
  word-wrap: break-word;
  transform: translateZ(0);
  will-change: transform;
  z-index: 1;
}

.horario-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(157, 36, 73, 0.1), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.horario-card:hover:not(.disabled):not(.selected) {
  transform: translateY(-2px) translateZ(0);
  border-color: var(--color-primary-700);
  box-shadow: 0 4px 12px rgba(97, 18, 50, 0.12);
  background: #fff;
  z-index: 2;
}

.horario-card:hover::before {
  left: 100%;
}

.horario-card.selected {
  background: linear-gradient(135deg, rgba(157, 36, 73, 0.1), rgba(165, 127, 44, 0.1));
  border-color: var(--color-primary-700);
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(97, 18, 50, 0.2);
  transform: translateZ(0);
  z-index: 3;
}

.horario-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #ccc;
}

.horario-card.disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.error-hint {
  color: var(--color-primary-700);
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(157, 36, 73, 0.1);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-primary-700);
}

/* Iconos CSS usando SVG (100% compatibles) */
.icon-sparkle::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BC955C'%3E%3Cpath d='M12 2l2.4 7.2h7.6l-6 4.8 2.4 7.2L12 17.4l-6 4.8 2.4-7.2-6-4.8h7.6z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  animation: sparkle 2s ease-in-out infinite;
}

.icon-target::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239d2449'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%239d2449' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='12' r='6' stroke='%239d2449' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%239d2449'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-sad::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2398989A'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%2398989A' stroke-width='2' fill='none'/%3E%3Cpath d='M8 10h8M8 14h8M8 18c0-2 1.5-4 4-4s4 2 4 4' stroke='%2398989A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-clock::before,
.icon-calendar::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.4rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-calendar::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-user::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-users::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-lock::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-warning::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239d2449'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 3.5L19.5 20h-15L12 5.5z'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3Cpath d='M12 13V9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.1) rotate(180deg); 
  }
}

/* Footer */
.site-footer { 
  background: linear-gradient(135deg, var(--color-emerald-900) 0%, #1a4039 100%);
  color: #fff; 
  padding: 2rem 0; 
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}

.muted { color: var(--color-neutral-500); }

/* Utility */
.space { height: 1.25rem; }

/* Forms - Rediseño con Glassmorphism */
.form-registro {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(250,250,250,0.95));
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 
    0 8px 32px rgba(97, 18, 50, 0.1),
    0 2px 8px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(97, 18, 50, 0.1);
  position: relative;
  animation: formSlideIn 0.6s ease-out;
  overflow: hidden;
}

.form-registro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmerForm 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.form-registro > * {
  position: relative;
  z-index: 1;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerForm {
  0% { left: -100%; }
  100% { left: 100%; }
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(221, 201, 163, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.form-section:hover {
  border-bottom-color: rgba(157, 36, 73, 0.2);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--color-primary-900);
  font-weight: 600;
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-section-header .form-title {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  margin-bottom: .5rem;
  font-weight: 500;
  color: var(--color-emerald-900);
  font-size: .95rem;
}

.required {
  color: var(--color-primary-700);
}

.form-input {
  padding: .875rem 1rem;
  border: 2px solid rgba(152, 152, 154, 0.3);
  border-radius: .75rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff, #fafafa);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.03);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-700);
  box-shadow: 
    0 0 0 4px rgba(157, 36, 73, .1),
    inset 0 2px 4px rgba(0,0,0,.05),
    0 2px 8px rgba(157, 36, 73, .15);
  transform: translateY(-1px);
  background: #fff;
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-primary-700);
}

.form-hint {
  margin-top: 1rem;
  color: var(--color-neutral-500);
  font-size: .9rem;
}

/* Personas adicionales */
.persona-adicional {
  background: linear-gradient(145deg, rgba(221, 201, 163, 0.3), rgba(221, 201, 163, 0.15));
  border: 2px solid rgba(157, 36, 73, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.persona-adicional:hover {
  border-color: rgba(157, 36, 73, 0.4);
  box-shadow: 0 4px 12px rgba(97, 18, 50, 0.1);
  transform: translateX(4px);
}

.persona-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--color-primary-900);
}

.persona-header h3 {
  margin: 0;
  color: var(--color-primary-900);
  font-size: 1.1rem;
}

.btn-eliminar {
  background: var(--color-primary-700);
  color: #fff;
  border: 0;
  padding: .5rem .75rem;
  border-radius: .375rem;
  cursor: pointer;
  font-size: .875rem;
  transition: background .2s ease;
}

.btn-eliminar:hover {
  background: var(--color-primary-900);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-accent-500) 0%, #a8894a 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 15px rgba(188, 149, 92, 0.4);
}

.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 149, 92, 0.5);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--color-emerald-900);
  border: 2px solid var(--color-emerald-900);
}

.btn-outline-secondary:hover {
  background: var(--color-emerald-900);
  color: #fff;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Mensajes de resultado */
.mensaje-resultado {
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  margin-top: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.mensaje-success {
  background: color-mix(in srgb, #13322e 15%, #fff);
  color: var(--color-emerald-900);
  border: 2px solid var(--color-emerald-900);
}

.mensaje-error {
  background: color-mix(in srgb, #9d2449 15%, #fff);
  color: var(--color-primary-700);
  border: 2px solid var(--color-primary-700);
}

.mensaje-warning {
  background: color-mix(in srgb, #a57f2c 15%, #fff);
  color: #a57f2c;
  border: 2px solid #a57f2c;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 50%, var(--color-emerald-900) 100%);
  padding: 2rem 1rem;
}

.login-box {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-neutral-200);
}

.login-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--color-primary-900);
  font-weight: 700;
}

.login-header p {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: 0.95rem;
}

.login-form {
  margin-bottom: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-neutral-200);
}

/* Admin Dashboard - Mejoras Visuales */
.admin-header {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 100%);
  color: #fff;
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-accent-500);
}

.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user-info span {
  color: var(--color-neutral-200);
}

.btn-logout {
  background: var(--color-primary-700);
  color: #fff;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background .2s ease;
}

.btn-logout:hover {
  background: #7a1d38;
}

.dashboard-container {
  padding: 2.5rem 0;
  animation: fadeIn 0.6s ease-out;
}

.dashboard-header {
  margin-bottom: 3rem;
  text-align: center;
}

.dashboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-900);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.dashboard-subtitle {
  font-size: 1.1rem;
  color: var(--color-neutral-500);
  margin: 0;
}

.dashboard-stats-section,
.dashboard-features-section {
  margin-bottom: 3rem;
}

.stats-section-title,
.features-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(157, 36, 73, 0.2);
  position: relative;
}

.stats-section-title::after,
.features-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stats-card {
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  border: 1px solid rgba(157, 36, 73, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  animation: cardFadeIn 0.6s ease-out both;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }
.stats-card:nth-child(5) { animation-delay: 0.5s; }
.stats-card:nth-child(6) { animation-delay: 0.6s; }

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  transition: width 0.3s ease;
}

.stats-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(97, 18, 50, 0.15);
}

.stats-card-primary::before { background: var(--color-primary-700); }
.stats-card-success::before { background: var(--color-emerald-900); }
.stats-card-info::before { background: #667eea; }
.stats-card-warning::before { background: var(--color-accent-700); }
.stats-card-secondary::before { background: var(--color-accent-500); }
.stats-card-accent::before { background: var(--color-primary-900); }

.stats-card-primary:hover::before { background: var(--color-primary-700); }
.stats-card-success:hover::before { background: var(--color-emerald-900); }
.stats-card-info:hover::before { background: #667eea; }
.stats-card-warning:hover::before { background: var(--color-accent-700); }
.stats-card-secondary:hover::before { background: var(--color-accent-500); }
.stats-card-accent:hover::before { background: var(--color-primary-900); }

.stats-card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats-card-primary .stats-card-icon {
  background: linear-gradient(135deg, rgba(157, 36, 73, 0.15), rgba(157, 36, 73, 0.25));
}

.stats-card-success .stats-card-icon {
  background: linear-gradient(135deg, rgba(19, 50, 46, 0.15), rgba(19, 50, 46, 0.25));
}

.stats-card-info .stats-card-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.25));
}

.stats-card-warning .stats-card-icon {
  background: linear-gradient(135deg, rgba(165, 127, 44, 0.15), rgba(165, 127, 44, 0.25));
}

.stats-card-secondary .stats-card-icon {
  background: linear-gradient(135deg, rgba(188, 149, 92, 0.15), rgba(188, 149, 92, 0.25));
}

.stats-card-accent .stats-card-icon {
  background: linear-gradient(135deg, rgba(97, 18, 50, 0.15), rgba(97, 18, 50, 0.25));
}

.stats-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.stats-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-neutral-500);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stats-card .number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary-900);
  margin: 0.25rem 0;
  line-height: 1;
}

.stats-card .label {
  color: var(--color-neutral-500);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Iconos para estadísticas */
.icon-registros,
.icon-registros-large {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-registros-large {
  width: 64px;
  height: 64px;
}

.icon-eventos,
.icon-eventos-large {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313322e' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-eventos-large {
  width: 64px;
  height: 64px;
}

.icon-personas {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-hoy {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a57f2c' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-semana {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BC955C' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-mes {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23611232' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-dashboard {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.icon-config-large {
  width: 64px;
  height: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a57f2c' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v6m0 6v6M5.64 5.64l4.24 4.24m4.24 4.24l4.24 4.24M1 12h6m6 0h6M5.64 18.36l4.24-4.24m4.24-4.24l4.24-4.24'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  border: 1px solid rgba(157, 36, 73, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(97, 18, 50, 0.15);
}

.feature-card-warning {
  border-left: 4px solid var(--color-accent-700);
  background: linear-gradient(145deg, rgba(165, 127, 44, 0.05), rgba(165, 127, 44, 0.02));
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 0.75rem;
  background-color: rgba(157, 36, 73, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-content {
  text-align: center;
}

.feature-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0 0 0.75rem;
}

.feature-card-desc {
  color: var(--color-neutral-500);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.feature-card-btn {
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  width: 100%;
  max-width: 250px;
}

.feature-card-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-neutral-500);
  font-style: italic;
}

.feature-card-list {
  font-size: 0.9rem;
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  text-align: left;
  color: var(--color-neutral-500);
}

.feature-card-list li {
  margin-bottom: 0.5rem;
}

/* Admin Eventos Page */
.eventos-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.eventos-page-title-section {
  flex: 1;
  min-width: 250px;
}

.eventos-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-900);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eventos-page-subtitle {
  font-size: 1rem;
  color: var(--color-neutral-500);
  margin: 0;
}

.eventos-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.alert-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(165, 127, 44, 0.1), rgba(165, 127, 44, 0.05));
  border-left: 4px solid var(--color-accent-700);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.alert-warning-box strong {
  color: var(--color-accent-700);
  display: block;
  margin-bottom: 0.25rem;
}

.alert-warning-box p {
  margin: 0;
  color: var(--color-neutral-500);
  font-size: 0.9rem;
}

.loading-container {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-container p {
  color: var(--color-neutral-500);
  margin: 0;
}

.empty-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, rgba(221, 201, 163, 0.1), rgba(221, 201, 163, 0.05));
  border-radius: 1rem;
  border: 2px dashed rgba(157, 36, 73, 0.2);
}

.empty-state-icon,
.error-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

.empty-state h3,
.error-state h3 {
  color: var(--color-primary-900);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.empty-state p,
.error-state p {
  color: var(--color-neutral-500);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.error-state {
  border-color: rgba(157, 36, 73, 0.3);
  background: linear-gradient(145deg, rgba(157, 36, 73, 0.1), rgba(157, 36, 73, 0.05));
}

/* Eventos Sections */
.eventos-section {
  margin-bottom: 3rem;
  animation: fadeIn 0.6s ease-out;
}

.eventos-section-inactive {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(157, 36, 73, 0.15);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-active {
  color: #27ae60;
}

.section-title-inactive {
  color: var(--color-neutral-500);
  opacity: 0.8;
}

.section-subtitle {
  color: var(--color-neutral-500);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.5rem 0 0 0;
}

.eventos-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Asegurar que eventos-grid sobrescriba .cards cuando están juntos */
.cards.eventos-grid {
  display: grid !important;
  flex-direction: unset !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scroll-behavior: unset !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Asegurar que las cards dentro de eventos-grid no tengan ancho fijo */
.cards.eventos-grid .evento-card {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  flex: unset !important;
}

/* Evento Cards */
.evento-card {
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  border: 1px solid rgba(157, 36, 73, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardFadeIn 0.6s ease-out both;
  position: relative;
}

.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(97, 18, 50, 0.15);
}

.evento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
  z-index: 1;
}

.evento-card-active::before {
  background: linear-gradient(90deg, #27ae60, #4caf50);
}

.evento-card-inactive {
  opacity: 0.85;
  background: linear-gradient(145deg, #f9f9f9, #f5f5f5);
  transform: scale(0.97);
}

.evento-card-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(250,250,250,1) 100%);
  border-bottom: 2px solid rgba(157, 36, 73, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.evento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0;
  flex: 1;
}

.evento-card-title-inactive {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-neutral-500);
  margin: 0;
  flex: 1;
}

.badge {
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-activo {
  background: linear-gradient(135deg, #27ae60, #4caf50);
  color: white;
}

.badge-finalizado {
  background: var(--color-neutral-500);
  color: white;
}

.evento-card-body {
  padding: 1.5rem;
}

.evento-card-body-inactive {
  padding: 1.25rem;
  text-align: center;
}

.evento-descripcion {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(157, 36, 73, 0.1);
}

.evento-descripcion p {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

.evento-fechas,
.evento-limites {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.evento-fecha-item,
.evento-limite-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(157, 36, 73, 0.05);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-primary-700);
}

.evento-fecha-item strong,
.evento-limite-item strong {
  color: var(--color-primary-900);
  display: block;
  margin-bottom: 0.25rem;
}

.evento-fecha-item div,
.evento-limite-item div {
  flex: 1;
  color: #444;
  font-size: 0.9rem;
}

.evento-horarios {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(19, 50, 46, 0.05);
  border-radius: 0.5rem;
  border-left: 3px solid var(--color-emerald-900);
}

.evento-horarios strong {
  color: var(--color-emerald-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.evento-horarios-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.evento-horarios-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.evento-horarios-list li:last-child {
  border-bottom: none;
}

.horario-time {
  font-weight: 600;
  color: var(--color-primary-900);
}

.horario-info {
  color: var(--color-neutral-500);
  font-size: 0.85rem;
}

.evento-registros {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(157, 36, 73, 0.1), rgba(157, 36, 73, 0.05));
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary-900);
}

.evento-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(157, 36, 73, 0.1);
}

.evento-actions .btn {
  flex: 1;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Iconos adicionales para eventos */
.icon-eventos-header,
.icon-list,
.icon-plus,
.icon-eventos-active,
.icon-eventos-inactive {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-eventos-header {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.icon-plus {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.icon-eventos-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-eventos-inactive {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398989A' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-calendar-small,
.icon-clock-small,
.icon-users-small,
.icon-registros-small,
.icon-edit,
.icon-empty,
.icon-error {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-calendar-small {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-clock-small {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.icon-users-small {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-registros-small {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-edit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

.icon-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398989A' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* Admin Crear Evento Page */
.create-event-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.create-event-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-900);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.create-event-subtitle {
  font-size: 1rem;
  color: var(--color-neutral-500);
  margin: 0;
}

.form-crear-evento-modern {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(250,250,250,0.95));
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 
    0 8px 32px rgba(97, 18, 50, 0.1),
    0 2px 8px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(97, 18, 50, 0.1);
  position: relative;
  animation: formSlideIn 0.6s ease-out;
  overflow: hidden;
}

.form-crear-evento-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmerForm 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.form-crear-evento-modern > * {
  position: relative;
  z-index: 1;
}

.form-section-modern {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(221, 201, 163, 0.3);
}

.form-section-modern:last-of-type {
  border-bottom: none;
}

.form-section-title-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(157, 36, 73, 0.2);
  position: relative;
}

.form-section-title-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent-500));
}

.form-section-hint {
  font-size: 0.9rem;
  color: var(--color-neutral-500);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.form-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
}

.form-label-modern {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-emerald-900);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-input-modern {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(152, 152, 154, 0.3);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff, #fafafa);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.03);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--color-primary-700);
  box-shadow: 
    0 0 0 4px rgba(157, 36, 73, .1),
    inset 0 2px 4px rgba(0,0,0,.05),
    0 2px 8px rgba(157, 36, 73, .15);
  transform: translateY(-1px);
  background: #fff;
}

.form-textarea-modern {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.char-counter-modern {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-neutral-500);
}

.mensaje-alerta-modern {
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: slideDown 0.4s ease-out;
  font-weight: 500;
}

.mensaje-alerta-modern.success {
  background: linear-gradient(145deg, rgba(19, 50, 46, 0.1), rgba(19, 50, 46, 0.05));
  border: 2px solid var(--color-emerald-900);
  color: var(--color-emerald-900);
}

.mensaje-alerta-modern.error {
  background: linear-gradient(145deg, rgba(157, 36, 73, 0.1), rgba(157, 36, 73, 0.05));
  border: 2px solid var(--color-primary-700);
  color: var(--color-primary-700);
}

.form-actions-modern {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(221, 201, 163, 0.3);
}

.horarios-container-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.horario-item-modern {
  background: linear-gradient(145deg, rgba(221, 201, 163, 0.15), rgba(221, 201, 163, 0.05));
  border: 2px solid rgba(157, 36, 73, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: cardFadeIn 0.4s ease-out both;
  position: relative;
}

.horario-item-modern:hover {
  border-color: rgba(157, 36, 73, 0.4);
  box-shadow: 0 4px 12px rgba(97, 18, 50, 0.1);
  transform: translateX(4px);
}

.horario-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(157, 36, 73, 0.1);
}

.horario-item-number {
  font-weight: 700;
  color: var(--color-primary-900);
  font-size: 1rem;
}

.btn-remove-horario-modern {
  background: var(--color-primary-700);
  color: #fff;
  border: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-remove-horario-modern:hover {
  background: var(--color-primary-900);
  transform: scale(1.05);
}

.horario-item-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.horario-field {
  display: flex;
  flex-direction: column;
}

.btn-add-horario-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Iconos adicionales para crear evento */
.icon-plus-header,
.icon-event-create,
.icon-info,
.icon-calendar-section,
.icon-clock-section,
.icon-limits,
.icon-event-name,
.icon-desc,
.icon-calendar-input,
.icon-clock-input,
.icon-users-input,
.icon-plus-small,
.icon-check,
.icon-remove,
.icon-seats {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-plus-header {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.icon-event-create {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-info {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

.icon-calendar-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-clock-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.icon-limits {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-event-name,
.icon-calendar-input,
.icon-clock-input,
.icon-users-input {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.icon-clock-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.icon-users-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-desc {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}

.icon-plus-small {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.icon-check {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.icon-remove {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.icon-seats {
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='2'%3E%3Crect x='3' y='8' width='18' height='14' rx='2'/%3E%3Cpath d='M7 8V6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}

/* Animaciones y transiciones mejoradas */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Spinner de carga */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

/* Mejoras en feedback visual del formulario */
.form-input.valid {
  border-color: var(--color-emerald-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2313322e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-input.invalid {
  border-color: var(--color-primary-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d2449' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.form-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.form-message.show {
  display: block;
}

.form-message.error {
  color: var(--color-primary-700);
  background: color-mix(in srgb, var(--color-primary-700) 10%, #fff);
  border-left: 3px solid var(--color-primary-700);
}

.form-message.success {
  color: var(--color-emerald-900);
  background: color-mix(in srgb, var(--color-emerald-900) 10%, #fff);
  border-left: 3px solid var(--color-emerald-900);
}

/* Mejoras en botones con estados de carga */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* Animación al agregar/eliminar personas */
.persona-adicional {
  animation: slideDown 0.4s ease-out;
}

.persona-adicional.removing {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(-20px);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* Mejoras en mensajes de resultado */
.mensaje-resultado {
  animation: slideDown 0.4s ease-out;
}

.mensaje-resultado.show {
  display: block;
}

/* Overlay de carga */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-overlay-content {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-out;
}

.loading-overlay-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-neutral-200);
  border-radius: 50%;
  border-top-color: var(--color-primary-700);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Mejoras responsive */
@media (max-width: 768px) {
  .login-box {
    padding: 2rem 1.5rem;
  }
  
  .admin-header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .form-registro {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  .hero {
    padding: 2rem 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .persona-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .btn-eliminar {
    width: 100%;
    justify-content: center;
  }
  
  .form-section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-section-header .btn {
    width: 100%;
  }
  
  .container {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .form-registro {
    padding: 1rem;
  }
  
  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  /* Grid de fechas responsive */
  .fechas-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Ajustar padding en cards para móvil */
  .card-body {
    padding: 1.5rem 1.25rem !important;
  }
  
  /* Reducir padding en secciones de información dentro de cards */
  .cards .card [style*="padding: 1.75rem"] {
    padding: 1.25rem 1.5rem !important;
  }
  
  .cards .card [style*="padding: 1.5rem 2rem"] {
    padding: 1.25rem 1.25rem !important;
  }
  
  /* Ajustar tamaños de fuente en móvil */
  .cards .card h3 {
    font-size: 1.35rem !important;
  }
  
  .cards .card p {
    font-size: 0.9rem !important;
  }
  
  /* Iconos más pequeños en móvil */
  .cards .card [style*="width: 40px; height: 40px"] {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
  
  /* Botones más compactos */
  .cards .card .btn {
    padding: 0.875rem !important;
    font-size: 0.95rem !important;
  }
  
  .form-title {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .btn-large {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .login-box {
    padding: 1.5rem;
  }
}

/* Mejoras en estados de focus y hover */
.btn {
  transition: all 0.2s ease;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Mejoras en inputs con validación */
.form-input:focus:valid {
  border-color: var(--color-emerald-900);
  box-shadow: 0 0 0 3px rgba(19, 50, 46, 0.1);
}

.form-input:focus:invalid:not(:placeholder-shown) {
  border-color: var(--color-primary-700);
  box-shadow: 0 0 0 3px rgba(157, 36, 73, 0.1);
}

/* Efecto de entrada suave para el formulario */
.form-registro {
  animation: fadeIn 0.5s ease-out;
}

/* Mejoras en el mensaje de resultado */
.mensaje-resultado {
  display: none;
  animation: slideDown 0.4s ease-out;
}

.mensaje-resultado.show {
  display: block;
}


