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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #4a4a8a;
  background-color: #faf8ff;
  overflow-x: hidden;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #4a4a8a;
  margin-bottom: 1rem;
  text-align: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(147, 112, 219, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(147, 112, 219, 0.1);
  transition: all 0.3s ease;
}
.header.transparent {
  background: transparent !important;
  border-bottom: none;
  backdrop-filter: none;
  box-shadow: none !important;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-menu {
  display: none; /* Oculto por defecto en desktop */
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #e6e6fa;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #e6e6fa;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e6e6fa;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
  /*filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));*/
}
/*.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}*/
/*
.header:not(.transparent) .logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.header:not(.transparent) .logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}*/

.menu-toggle {
  display: block; /* Visible por defecto */
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
}
.header .menu-toggle { color: #ffffff; }
.header.transparent .menu-toggle { color: #ffffff; }
.header:not(.transparent) .menu-toggle { color: #ffffff; }
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #9370db;
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.header.transparent .menu-toggle span,
.header:not(.transparent) .menu-toggle span {
  background: #ffffff;
}

.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(147, 112, 219, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}
.fullscreen-menu.active .menu-links li {
  opacity: 1;
  transform: translateY(0);
}

.menu-content {
  text-align: center;
}

.menu-links {
  list-style: none;
}
.menu-links li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}
.menu-links li:nth-child(1) {
  transition-delay: 0.1s;
}
.menu-links li:nth-child(2) {
  transition-delay: 0.2s;
}
.menu-links li:nth-child(3) {
  transition-delay: 0.3s;
}
.menu-links li:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-link {
  font-size: 2.5rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.menu-link:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}
.menu-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}
.menu-link:hover::after {
  width: 100%;
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6e6fa, #f8e6f0, #f0e6ff);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
}
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.hero-content {
  text-align: center;
  z-index: 3;
  position: relative;
  max-width: 800px;
  padding: 0 2rem;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.7s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.9s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about {
  padding: 6rem 0;
  background: #ffffff;
}
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text {
  max-width: 600px;
}
.about-description {
  font-size: 1.1rem;
  color: #8e8e93;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: #f0e6ff;
  border-radius: 20px;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(147, 112, 219, 0.1);
}
.stat:nth-child(2) {
  animation-delay: 0.5s;
}
.stat:nth-child(3) {
  animation-delay: 1s;
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #9370db;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  color: #8e8e93;
  font-weight: 500;
}

.portfolio {
  padding: 6rem 0;
  background: #f5f5f7;
}

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

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(147, 112, 219, 0.2);
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(147, 112, 219, 0.9));
  color: #ffffff;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
  border-radius: 0 0 15px 15px;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-category {
  font-size: 0.9rem;
  opacity: 0.9;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: inline-block;
  margin-top: 0.5rem;
}

.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #9370db, #c8a2c8);
  color: #ffffff;
}
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact .section-title {
  color: #ffffff;
}
.contact-description {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.8;
}

.cta-btn {
  background: #ffffff;
  color: #9370db;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.cta-btn * { cursor: inherit; }
#contactBtn { cursor: pointer; }
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: #f0e6ff;
}

.footer {
  background: #4a4a8a;
  color: #ffffff;
  padding: 3rem 0 1rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-logo p {
  opacity: 0.8;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.social-link {
  color: #ffffff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.social-link:hover {
  color: #c8a2c8;
  transform: scale(1.1);
}

.scroll-btn {
  background: #9370db;
  color: #ffffff;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.1s;
}
.scroll-btn:hover {
  background: #c8a2c8;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(147, 112, 219, 0.2);
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f0e6ff;
  border-radius: 50%;
  border-top-color: #9370db;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }
  .stat {
    padding: 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  .menu-link {
    font-size: 2rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .logo-img {
    width: 120px !important;
    height: auto;
  }
  .header.transparent .logo h2 {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .about-stats {
    flex-direction: column;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .logo-img {
    width: 120px !important;
    height: auto;
  }
  .header.transparent .logo h2 {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.hero-btn:not(.secondary) {
  background: #9370db;
  color: #ffffff;
  border-color: #9370db;
}

.hero-btn:not(.secondary):hover {
  background: #7b68ee;
  border-color: #7b68ee;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3);
}

.hero-btn.secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.hero-btn.secondary:hover {
  background: #ffffff;
  color: #9370db;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Header fijo para páginas de formulario */
.fixed-header {
  background: rgba(147, 112, 219, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(147, 112, 219, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixed-header .logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.fixed-header .logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.fixed-header .menu-toggle span {
  background: #ffffff;
}

/* Asegurar que el header fijo siempre tenga el color morado */
.fixed-header:not(.transparent) {
  background: rgba(147, 112, 219, 0.95) !important;
}

/* Estilos para el formulario de registro */
.main-content {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(135deg, #faf8ff 0%, #e8e4ff 100%);
}

.register-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

.register-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(147, 112, 219, 0.1);
  border: 1px solid rgba(147, 112, 219, 0.1);
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

/* Estilos específicos para formularios más anchos */
.register-card[style*="max-width: 800px"] {
  max-width: 800px !important;
}

.register-card[style*="max-width: 800px"] .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .register-card[style*="max-width: 800px"] .form-row {
    grid-template-columns: 1fr;
  }
}

.register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4a4a8a;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #9370db, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.register-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #4a4a8a;
  font-size: 0.95rem;
}

.form-group input {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #9370db;
  box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-group select {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239370db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.form-group select:focus {
  outline: none;
  border-color: #9370db;
  box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea:focus {
  outline: none;
  border-color: #9370db;
  box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-group small {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Mejoras adicionales para formularios */
.form-group input[type="date"] {
  position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Estilos para elementos deshabilitados */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(147, 112, 219, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.register-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.register-footer p {
  color: #6b7280;
  font-size: 1rem;
}

.register-footer a {
  color: #9370db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-footer a:hover {
  color: #8a2be2;
}

.form-forgot-link {
  text-align: right;
  margin-top: -0.5rem;
}

.form-forgot-link a {
  color: #9370db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form-forgot-link a:hover {
  color: #8a2be2;
}

.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert i {
  margin-right: 0;
}

.alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.register-footer p {
  margin: 0.5rem 0;
}

.register-footer p:first-child {
  margin-top: 0;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
  .register-card {
    margin: 1rem;
    padding: 2rem;
    max-width: 90%;
  }
  
  .register-header h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Previene zoom en iOS */
  }
}

@media (max-width: 480px) {
  .register-card {
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .register-header h1 {
    font-size: 1.8rem;
  }
}

/* Estilos para verificación de email */
.verification-success,
.verification-error {
  text-align: center;
  padding: 2rem 0;
}

/* Cinematográfico: fondo y atmósfera para verify_email */
.verify-email-page .main-content {
  background: linear-gradient(180deg, var(--bg-2), var(--bg)) !important;
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
}
.verify-email-page .main-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(239,68,68,0.08), transparent 60%),
    radial-gradient(50% 35% at 80% 20%, rgba(59,130,246,0.06), transparent 60%),
    radial-gradient(40% 30% at 50% 80%, rgba(16,185,129,0.07), transparent 60%);
  pointer-events: none;
}
.verify-email-page .register-card {
  background: rgba(17,17,17,0.85) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35) !important;
}
.verify-email-page .register-header h1 {
  color: var(--text) !important;
}
.verify-email-page .register-header p {
  color: var(--text-muted) !important;
}
.verify-email-page .success-icon svg circle { stroke: var(--success) !important; }
.verify-email-page .success-icon svg path { stroke: var(--success) !important; }
.verify-email-page .error-icon svg circle { stroke: var(--primary) !important; }
.verify-email-page .error-icon svg path { stroke: var(--primary) !important; }
.verify-email-page .verification-actions .login-link { color: var(--primary) !important; }
.verify-email-page .verification-actions .login-link:hover { color: var(--primary-hover) !important; }

.success-icon,
.error-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.verification-success h2,
.verification-error h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #4a4a8a;
}

.verification-success h2 {
  color: #16a34a;
}

.verification-error h2 {
  color: #dc2626;
}

.verification-success p,
.verification-error p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.verification-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.login-link {
  color: #9370db;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: #8a2be2;
}

/* Responsive para verificación */
@media (max-width: 768px) {
  .verification-success h2,
  .verification-error h2 {
    font-size: 1.8rem;
  }
  
  .verification-success p,
  .verification-error p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .verification-success h2,
  .verification-error h2 {
    font-size: 1.6rem;
  }
}

/* Header responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-container {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
}

/* Desktop: mostrar menú hamburguesa siempre */
@media (min-width: 769px) {
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* Dashboard Styles */
.dashboard-header {
  background: #9370db;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-logo img {
  width: 50px;
  height: auto;
}

.dashboard-logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Alinear logo e h1 dentro del enlace del header en todas las páginas */
.dashboard-logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  text-align: right;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-profile-photo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-profile-placeholder {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.user-details {
  text-align: left;
}

.user-name {
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.user-email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4a4a8a;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(147, 112, 219, 0.1);
  color: #9370db;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.5rem 0;
}

.dashboard-container {
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #e6e6fa, #f8e6f0, #f0e6ff);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
}

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

/* Estilos unificados para todas las páginas */
.register-section,
.upload-section {
  width: 100%;
}

.register-card,
.upload-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(147, 112, 219, 0.1);
  width: 100%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===== SECCIÓN DE CASTINGS ===== */

.castings-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.castings-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23e6e6fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.castings-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 2rem;
  font-weight: 400;
}



.quick-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(147, 112, 219, 0.2);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: #4a4a8a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(147, 112, 219, 0.1);
  border-color: rgba(147, 112, 219, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
}

.filter-btn i {
  font-size: 0.9rem;
}

.castings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  /* Grid siempre muestra 3 castings por fila - 6 castings por página */
}


/* Mensaje cuando no hay castings */
.no-castings-message {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.casting-card.empty {
  max-width: 640px;
  margin: 0 auto;
}

/* Utilidad para ocultar elementos */
.hidden { display: none !important; }



.casting-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(147, 112, 219, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}



.casting-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(147, 112, 219, 0.2);
}

.casting-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.casting-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #e6e6fa, #f0f0ff);
  position: relative;
  overflow: hidden;
}

.casting-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.casting-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.casting-category-placeholder {
  width: 80px;
  height: 20px;
  background: linear-gradient(135deg, #e6e6fa, #f0f0ff);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.casting-title-placeholder {
  width: 100%;
  height: 24px;
  background: linear-gradient(135deg, #e6e6fa, #f0f0ff);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.casting-description-placeholder {
  width: 90%;
  height: 16px;
  background: linear-gradient(135deg, #e6e6fa, #f0f0ff);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.casting-description-placeholder:last-child {
  width: 70%;
}

/* ===== TARJETAS DE CASTING REALES ===== */

.casting-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}



.casting-category {
  display: inline-block;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  width: fit-content;
}

.casting-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a4a8a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.casting-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}



.casting-meta {
  margin-bottom: 1rem;
}

.casting-payment {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.casting-btn {
  display: inline-block;
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.casting-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
  color: white;
}

/* ===== PAGINACIÓN AJAX ===== */

.castings-pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination-info {
  margin-bottom: 1.5rem;
}

.pagination-text {
  color: #6b7280;
  font-size: 0.9rem;
}

.pagination-text span {
  color: #9370db;
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(147, 112, 219, 0.2);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  color: #4a4a8a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(147, 112, 219, 0.1);
  border-color: rgba(147, 112, 219, 0.4);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn i {
  font-size: 0.8rem;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-number {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(147, 112, 219, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a8a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.page-number:hover {
  background: rgba(147, 112, 219, 0.1);
  border-color: rgba(147, 112, 219, 0.4);
  transform: translateY(-2px);
}

.page-number.active {
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
}

.page-number.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 112, 219, 0.4);
}

/* ===== ANIMACIONES DE ENTRADA ===== */

.casting-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.casting-card:nth-child(1) { animation-delay: 0.1s; }
.casting-card:nth-child(2) { animation-delay: 0.2s; }
.casting-card:nth-child(3) { animation-delay: 0.3s; }
.casting-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ESTADOS DE CARGA ===== */

.castings-section.loading .casting-card {
  animation: none;
  opacity: 1;
  transform: none;
}

.castings-section.loading .casting-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

.castings-actions {
  text-align: center;
}

.castings-btn {
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.3);
}

.castings-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(147, 112, 219, 0.4);
  color: white;
}

.castings-btn svg {
  transition: transform 0.3s ease;
}

.castings-btn:hover svg {
  transform: translateX(5px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .quick-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .castings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .quick-filters {
    justify-content: center;
  }
  
  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .castings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  

}

/* ======= PALETA OSCURA: CLÁSICO & MOOD ======= */
:root {
  --bg: #0D0D0D;
  --bg-2: #1A1A1A;
  --primary: #EF4444;
  --primary-hover: #DC2626;
  --text: #F5F5F5;
  --text-muted: #D1D5DB;
  --border: #2E2E2E;
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;
}

/* Fondo y texto global */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

/* Header y navegación */
.header,
.fixed-header,
.dashboard-header {
  background: var(--bg-2) !important;
  border-bottom: 1px solid var(--border) !important;
}
.header .menu-toggle span { background: var(--text) !important; }
/*.logo-img { filter: brightness(0) invert(1); }*/
.fullscreen-menu { background: rgba(13, 13, 13, 0.98) !important; }

/* Links y estados */
a, .menu-link { color: var(--text); }
a:hover, .menu-link:hover { color: var(--text-muted); }

/* Fondos de secciones/tarjetas */
.section,
.register-card,
.upload-card,
.content-section,
.info-card,
.casting-card,
.wizard-step-styled {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* Cabeceras y divisores suaves */
.section-header,
.dropdown-divider,
.footer-bottom,
.info-item,
.register-footer,
.content-section { border-color: var(--border) !important; }

/* Tipografía de tarjetas (listado) */
.casting-card h5.card-title { font-size: 1.10rem !important; line-height: 1.3; color: var(--text) !important; }
.casting-card .card-text { font-size: 1rem !important; color: var(--text-muted) !important; }

/* Imágenes de casting (listado) */
.casting-card .casting-image { height: 250px; object-fit: cover; }

/* Botones y estados hover */
.cta-btn,
.submit-btn,
.castings-btn,
.casting-btn,
.apply-button,
.video-upload-btn,
.btn.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.cta-btn.secondary { background: transparent !important; color: #fff !important; border-color: var(--primary) !important; }
.cta-btn:hover,
.submit-btn:hover,
.castings-btn:hover,
.casting-btn:hover,
.apply-button:hover,
.video-upload-btn:hover,
.btn.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

/* Badges y elementos destacados */
.featured-badge,
.casting-payment { background: var(--primary) !important; color: #fff !important; }
.category-badge { background: rgba(239, 68, 68, 0.85) !important; color: #fff !important; }

/* Textos secundarios */
.section-subtitle,
.casting-description,
.pagination-text,
.user-email,
.text-muted { color: var(--text-muted) !important; }

/* Alerts */
.alert { border: 1px solid var(--border); background: rgba(255,255,255,0.0); }
.alert.success { color: var(--success); background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }
.alert.warning { color: var(--warning); background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); }
.alert.error { color: var(--primary); background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
.alert-danger { color: #ff4d4f !important; border-color: rgba(255, 77, 79, 0.4) !important; background: rgba(255, 77, 79, 0.12) !important; }
.alert.info { color: var(--info); background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); }

/* Casting Detail oscuro */
.casting-hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)) !important; color: var(--text) !important; }
.section-icon { background: var(--primary) !important; }
.apply-button { background: var(--primary) !important; border: none !important; }
.already-applied { background: #6b7280 !important; color: #fff !important; }

/* Modal de aplicación: mejorar contraste de textos */
.modal-content { background: var(--bg-2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.modal-header .modal-title { color: var(--text) !important; }
.modal-header .btn-close { filter: invert(1); opacity: 0.9; position: relative; z-index: 1056; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-body strong { color: var(--text) !important; }
.modal-body .form-label { color: var(--text) !important; font-weight: 600; }
.modal-body .alert-info { background: rgba(59, 130, 246, 0.1) !important; color: var(--text) !important; border-color: rgba(59, 130, 246, 0.2) !important; }
.modal-footer .btn-secondary { background: #6b7280 !important; border-color: #6b7280 !important; color: #fff !important; }
.modal-footer .btn-success { background: var(--primary) !important; border-color: var(--primary) !important; }

/* Elevar z-index del modal y backdrop sobre el header fijo */
.modal { z-index: 1055 !important; }
.modal-backdrop { z-index: 1050 !important; }
/* Separación desde el header fijo */
.modal-dialog { margin-top: 60px !important; }

/* Footer */
.footer { background: #0f0f0f !important; color: var(--text) !important; }
.footer-section h4 { color: var(--primary) !important; }
.footer-section p, .footer-section a { color: var(--text-muted) !important; }
.footer-section a:hover { color: var(--primary) !important; }

/* Inputs y selects */
input, select, textarea { background: #111 !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
input::placeholder, textarea::placeholder { color: #9ca3af; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important; outline: none; }

/* ======= FIN PALETA OSCURA ======= */

/* ===== Overrides para remover tonos violeta en index ===== */
.scroll-btn {
  background: var(--primary) !important;
  color: #fff !important;
}
.scroll-btn:hover {
  background: var(--primary-hover) !important;
}

.stat {
  background: var(--bg-2) !important;
  box-shadow: none !important;
}

.filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3) !important;
}
.filter-btn.active:hover {
  background: var(--primary-hover) !important;
}

.contact {
  background: linear-gradient(135deg, var(--bg-2), #111111) !important;
  color: var(--text) !important;
}
.contact .section-title { color: var(--text) !important; }

/* ===== Overrides paginación y sección Castings (paleta oscura) ===== */
.page-number {
  background: transparent !important;
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
}
.page-number:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--primary) !important;
}
.page-number.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3) !important;
}
.page-number.active:hover {
  background: var(--primary-hover) !important;
}

.pagination-btn {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.pagination-btn:hover:not(:disabled) {
  background: #151515 !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}

.pagination-text span { color: var(--primary) !important; }

.castings-section {
  background: linear-gradient(135deg, #121212 0%, #1A1A1A 100%) !important;
}
.castings-section::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.06), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.05), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05), transparent 40%) !important;
  opacity: 1 !important;
}
.castings-header .section-title { color: var(--text) !important; }
.section-subtitle { color: var(--text-muted) !important; }
.quick-filters .filter-btn {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

/* Título de casting en blanco */
.casting-title { color: var(--text) !important; }

/*# sourceMappingURL=styles.css.map */
/* About (modo oscuro, contraste alto) */
.about {
  background: linear-gradient(180deg, var(--bg), #111111) !important;
  color: var(--text) !important;
}

.about .section-title {
  color: var(--text) !important;
}

.about-description {
  color: var(--text-muted) !important;
}

/* Tarjetas de stats */
.about-stats .stat {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.about-stats .stat:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.stat-number {
  color: var(--primary) !important;
}

.stat-label {
  color: var(--text-muted) !important;
}

/* Responsive (sin cambios estructurales) */
@media (max-width: 768px) {
  .about { padding: 4rem 0 !important; }
}

/* Header truly transparent: sin líneas ni sombras */
.header.transparent {
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Evitar línea blanca intermitente en scroll usando capa propia y pseudo-borde */
.header {
  border-bottom: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background-color;
}
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  opacity: 0;
  pointer-events: none;
}
.header:not(.transparent)::after { opacity: 1; }
.header.transparent::after { opacity: 0; }

/* ===== Overrides pantalla de Registro (paleta oscura) ===== */
.main-content {
  background: linear-gradient(135deg, #0f0f0f 0%, var(--bg) 100%) !important;
}
.register-card {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.register-header h1 {
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
.register-header p { color: var(--text-muted) !important; }
.form-group label { color: var(--text) !important; }
.form-group small { color: var(--text-muted) !important; }
.register-footer { border-top: 1px solid var(--border) !important; }
.register-footer a { color: var(--primary) !important; }
.register-footer a:hover { color: var(--primary-hover) !important; }

/* ===== Asegurar visibilidad y stacking del hamburguesa y menú fullscreen ===== */
.header .menu-toggle { opacity: 1 !important; }
.header .menu-toggle span { background: var(--text) !important; }
.header .menu-toggle { position: relative; }
.header .menu-toggle span { position: relative; }
.header .menu-toggle.active span {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  transform-origin: center !important;
}
.fullscreen-menu {
  z-index: 9990 !important;
  background: rgba(13, 13, 13, 0.98) !important;
}
.header { z-index: 10000 !important; }
.fullscreen-menu.active { opacity: 1 !important; visibility: visible !important; }

/* Forzar icono de cierre (X) en menú hamburguesa al abrir */
.header .menu-toggle.active span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg) !important;
}
.header .menu-toggle.active span:nth-child(2) {
  opacity: 0 !important;
}
.header .menu-toggle.active span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg) !important;
}

/* Asegurar que la X quede por encima del overlay */
.header .menu-toggle { z-index: 10001 !important; position: relative !important; }
.header .menu-toggle.active { position: relative !important; top: auto !important; right: auto !important; }

/* ===== Overrides pantalla de Login (paleta oscura) ===== */
.login-page .main-content { padding-top: 100px; }
.login-page .register-card { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.login-page .register-header h1 { color: var(--text) !important; background: none !important; -webkit-text-fill-color: initial !important; }
.login-page .register-header p { color: var(--text-muted) !important; }
.login-page .form-group label { color: var(--text) !important; }
.login-page .form-group small { color: var(--text-muted) !important; }
.login-page .register-footer { border-top: 1px solid var(--border) !important; }
.login-page .register-footer a { color: var(--primary) !important; }
.login-page .register-footer a:hover { color: var(--primary-hover) !important; }

/* ===== Overrides Dashboard (paleta oscura) ===== */
.dashboard-page .dashboard-container { background: linear-gradient(135deg, #121212, #0f0f0f) !important; animation: none !important; }
.edit-profile-page .dashboard-container { background: linear-gradient(135deg, #121212, #0f0f0f) !important; animation: none !important; }
.dashboard-page .dashboard-header { background: var(--bg-2) !important; }
.dashboard-page .dashboard-logo h1 { color: var(--text) !important; }
.dashboard-page .user-name { color: var(--text) !important; }
.dashboard-page .user-email { color: var(--text-muted) !important; }
.dashboard-page .user-dropdown-btn { background: rgba(255,255,255,0.08) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.dashboard-page .user-dropdown-btn:hover { background: rgba(255,255,255,0.14) !important; }
.dashboard-page .user-dropdown-menu { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; }
.dashboard-page .dropdown-item { color: var(--text) !important; }
.dashboard-page .dropdown-item:hover { background: rgba(239,68,68,0.08) !important; color: var(--primary) !important; }
.dashboard-page .dropdown-divider { background: var(--border) !important; }
.dashboard-page .welcome-section, .dashboard-page .section { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.dashboard-page .welcome-title, .dashboard-page .section-title { color: var(--text) !important; }
.dashboard-page .welcome-subtitle, .dashboard-page .casting-description, .dashboard-page .casting-date, .dashboard-page .application-date { color: var(--text-muted) !important; }
.dashboard-page .stat-card { background: var(--bg-2) !important; border: 1px solid var(--border) !important; }
.dashboard-page .stat-number { color: var(--primary) !important; }
.dashboard-page .stat-label { color: var(--text-muted) !important; }
.dashboard-page .casting-card, .dashboard-page .application-item { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.dashboard-page .casting-title, .dashboard-page .application-title { color: var(--text) !important; }
.dashboard-page .casting-category { background: var(--primary) !important; color: #fff !important; }
.dashboard-page .apply-btn { background: var(--primary) !important; color: #fff !important; }
.dashboard-page .apply-btn:hover { background: var(--primary-hover) !important; }
.dashboard-page .apply-btn.applied { background: var(--success) !important; }
.dashboard-page .empty-state { color: var(--text-muted) !important; }
.dashboard-page .empty-state svg { color: var(--primary) !important; }
/* Iconografía: evitar morados y alinear a paleta */
.dashboard-page .section-title svg { color: var(--primary) !important; }
.dashboard-page .dropdown-item svg { color: var(--text) !important; }
.dashboard-page svg { stroke: currentColor; }

/* Espaciado principal cuando se usa header fijo + include */
.register-page .main-content { padding-top: 100px; }

/* ===== Overrides Edit Profile (paleta oscura) ===== */
.edit-profile-page .register-card { max-width: 960px !important; width: 100%; margin: 0 auto; }
.edit-profile-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.edit-profile-page .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.edit-profile-page .btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.edit-profile-page .btn-primary:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; transform: translateY(-1px); }
.edit-profile-page .btn-secondary { background: #6b7280 !important; border: 1px solid #6b7280 !important; color: #fff !important; }
.edit-profile-page .btn-secondary:hover { background: #555b66 !important; border-color: #555b66 !important; transform: translateY(-1px); }
.edit-profile-page .wizard-navigation { border-top: 1px solid var(--border) !important; }
/* Centrar controles y etiqueta de pasos en una sola línea */
.edit-profile-page .wizard-navigation .nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.edit-profile-page .wizard-navigation .nav-left,
.edit-profile-page .wizard-navigation .nav-center,
.edit-profile-page .wizard-navigation .nav-right {
  width: auto;
  text-align: center;
}
.edit-profile-page .wizard-navigation .nav-center { order: 0; }
.edit-profile-page .wizard-navigation .nav-left { order: 1; }
.edit-profile-page .wizard-navigation .nav-right { order: 1; }
.edit-profile-page .wizard-navigation .nav-left,
.edit-profile-page .wizard-navigation .nav-right { display: flex; align-items: center; justify-content: center; }
.edit-profile-page .btn { line-height: 1; vertical-align: middle; }
.edit-profile-page .wizard-navigation .nav-center {
  display: block;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 0.25rem;
}
.edit-profile-page .wizard-navigation .nav-center span { color: var(--text-muted); }

/* Oscurecer banners de pasos y remover fondos claros */
.edit-profile-page .step-banner {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  border: 1px solid var(--border) !important;
}

/* Navegación auxiliar superior del wizard */
.edit-profile-page #wizardNavBottom { margin-top: 2rem; text-align: center; display: none; }
.edit-profile-page .current-step-info { margin: 0 1rem; font-weight: 500; color: var(--text-muted) !important; }

/* Utilidades */
.edit-profile-page .full-row { grid-column: 1 / -1; }
.edit-profile-page .wizard-navigation { margin-top: 1.5rem; }

/* Inputs protegidos y detalles */
.edit-profile-page .email-protected input[readonly] { cursor: not-allowed; }
.edit-profile-page .email-protected small { color: var(--text-muted) !important; font-style: italic; }

/* Alinear y estilizar .user-menu en edit_profile igual a dashboard */
.edit-profile-page .dashboard-logo h1 { color: var(--text) !important; }
.edit-profile-page .user-name { color: var(--text) !important; }
.edit-profile-page .user-email { color: var(--text-muted) !important; }
.edit-profile-page .user-dropdown-btn { background: rgba(255,255,255,0.08) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.edit-profile-page .user-dropdown-btn:hover { background: rgba(255,255,255,0.14) !important; }
.edit-profile-page .user-dropdown-menu { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; }
.edit-profile-page .dropdown-item { color: var(--text) !important; }
.edit-profile-page .dropdown-item:hover { background: rgba(239,68,68,0.08) !important; color: var(--primary) !important; }
.edit-profile-page .dropdown-divider { background: var(--border) !important; }

/* ===== Upload Photos (paleta oscura) ===== */
.upload-section { padding: 2rem 0; }
.upload-card { background: var(--bg-2) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.upload-header h1 { color: var(--text) !important; }
.upload-header p { color: var(--text-muted) !important; }
.upload-info { background: rgba(239,68,68,0.08) !important; border: 1px solid rgba(239,68,68,0.2) !important; color: var(--text) !important; }
.upload-area { border: 3px dashed var(--border) !important; background: #111 !important; }
.upload-area:hover { border-color: var(--primary) !important; background: #151515 !important; }
.upload-icon svg { color: #9ca3af !important; }
.upload-text { color: var(--text-muted) !important; }
.progress-bar { background: #1f1f1f !important; }
.progress-fill { background: var(--primary) !important; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.preview-item { position: relative; border-radius: 10px; overflow: hidden; background: #111 !important; border: 1px solid var(--border) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1); aspect-ratio: 1 / 1; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-remove { position: absolute; top: 6px; right: 6px; background: var(--primary) !important; color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.preview-remove:hover { background: var(--primary-hover) !important; }
.submit-btn { background: var(--primary) !important; color: #fff !important; }
.submit-btn:hover { background: var(--primary-hover) !important; }
/* Botones específicos de upload de fotos */
.upload-btn { background: var(--primary) !important; border: 1px solid var(--primary) !important; color: #fff !important; }
.upload-btn:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }
.back-btn { background: transparent !important; color: var(--primary) !important; border: 2px solid var(--primary) !important; }
.back-btn:hover { background: var(--primary) !important; color: #fff !important; }
/* Estilizar botón Seleccionar Fotos de upload */
.upload-photos-page .upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
/* Ocultar input nativo de archivos en pantalla de upload */
.upload-photos-page .file-input { display: none !important; }
/* Centrar contenido del área de upload */
.upload-photos-page #uploadArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== Tipografías: reemplazar grises #4a4a8a por paleta ===== */
.dashboard-page h3,
.edit-profile-page h3,
.upload-section h3,
.register-page h3,
.login-page h3 {
  color: var(--text) !important;
}
.dashboard-page ul li,
.edit-profile-page ul li,
.upload-section ul li,
.register-page ul li,
.login-page ul li {
  color: var(--text-muted) !important;
}

/* Progreso de pasos mejorado */
.edit-profile-page .progress-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.edit-profile-page .wizard-progress { display: flex; flex-direction: column; align-items: center; }
.edit-profile-page .wizard-progress .progress-bar { width: 100%; max-width: 720px; margin: 0 auto; }
.edit-profile-page .progress-steps .step {
  position: relative;
  text-decoration: none;
}
.edit-profile-page .progress-steps .step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.edit-profile-page .progress-steps .step:first-child::before { content: none; }

/* Estados del conector */
.edit-profile-page .progress-steps .step.completed::before { background: var(--primary); }
.edit-profile-page .progress-steps .step.active::before { background: var(--primary); }

/* Números de paso más visibles */
.edit-profile-page .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1f1f1f !important;
  color: var(--text-muted) !important;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all .2s ease;
  z-index: 1;
}
.edit-profile-page .step.active .step-number {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.edit-profile-page .step.completed .step-number {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Etiquetas de paso */
.edit-profile-page .step-label {
  color: var(--text-muted) !important;
  font-size: 12px;
  margin-top: 6px;
}
.edit-profile-page .step.active .step-label { color: var(--primary) !important; font-weight: 600; }
.edit-profile-page .step.completed .step-label { color: var(--primary) !important; font-weight: 600; }

/* ===== Compact UI ajustes solo para upload_photos (no global) ===== */
/* Compactar cabecera del panel en upload photos */
.upload-photos-page .dashboard-logo img { width: 50px; height: auto; }
.upload-photos-page .dashboard-logo h1 { font-size: 1.5rem; }
.upload-photos-page .header-profile-photo, .upload-photos-page .header-profile-placeholder { width: 45px; height: 45px; }

/* Upload card centrada y más estrecha */
.upload-card { max-width: 800px; margin: 0 auto; }
.upload-header h1 { font-size: 1.6rem; }

/* Área de subida menos alta y con ícono más pequeño */
.upload-area { padding: 2rem !important; }
.upload-icon { width: 56px; height: 56px; margin: 0 auto 0.75rem; }
.upload-icon svg { width: 100%; height: 100%; }

/* Grid del portafolio (faltaba en CSS global) */
.portfolio-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.portfolio-counter { color: var(--text-muted); font-weight: 600; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.portfolio-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid var(--border); background: #111; }
.portfolio-item img { width: 100%; height: 130px; object-fit: cover; display: block; }
.delete-photo-btn { position: absolute; top: 6px; right: 6px; background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.delete-photo-btn:hover { background: var(--primary-hover); }

@media (max-width: 768px) {
  .upload-photos-page .dashboard-logo img { width: 40px; }
  .upload-photos-page .dashboard-logo h1 { font-size: 1.2rem; }
  .upload-photos-page .header-profile-photo, .upload-photos-page .header-profile-placeholder { width: 40px; height: 40px; }
  .portfolio-item img { height: 120px; }
}
