/* Variables CSS */
:root {
  --primary-color: #9b1c2f;
  --primary-dark: #6a0a1d;
  --secondary-color: #f8f9fa;
  --accent-color: #ffc107;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  /* Added burgundy color variables to match Dart app */
  --burgundy-color: #800020;
  --burgundy-hover: #6a001a;
  --dark-transparent: rgba(0, 0, 0, 0.5);
}

/* Fuente Exo2 similar a Flutter */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&display=swap");

body {
  font-family: "Exo 2", sans-serif;
  margin: 0;
  padding: 0;
}

/* Fondo con imagen de Neza */
.background-neza {
  background-image: url("../img/neza5.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Header Styles */
.header-modern {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-link-modern {
  color: var(--secondary-color);
  font-weight: 500;
  padding: 10px 20px !important;
  border-radius: 25px;
  transition: var(--transition);
  margin: 0 5px;
}

.nav-link-modern:hover {
  background: rgba(255, 255, 255, 0.161);
  transform: translateY(-2px);
}

/* Colores burgundy */
.bg-burgundy {
  background-color: var(--burgundy-color) !important;
}

.btn-burgundy {
  background-color: var(--burgundy-color);
  border-color: var(--burgundy-color);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-burgundy:hover {
  background-color: var(--burgundy-hover);
  border-color: var(--burgundy-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(128, 0, 32, 0.3);
}

.border-burgundy {
  border-color: var(--burgundy-color) !important;
}

/* Tarjetas con fondo semi-transparente */
.bg-dark-transparent {
  background-color: var(--dark-transparent) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px !important;
}

/* Formularios */
.form-control {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--burgundy-color);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25);
}

.form-select {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
}

.form-select:focus {
  border-color: var(--burgundy-color);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.25);
}

/* Labels */
.form-label {
  font-weight: 700;
  margin-bottom: 8px;
}

/* Botones con efectos */
.btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 18px;
}

/* Navbar */
.navbar-brand {
  font-size: 14px;
  font-weight: 700;
}

/* Cards */
.card {
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  border-bottom: none;
}

/* Enhanced form styling for better UX */
.form-group-enhanced {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control-enhanced {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

.form-control-enhanced:focus {
  border-color: var(--burgundy-color);
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 32, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-select-enhanced {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

.form-select-enhanced:focus {
  border-color: var(--burgundy-color);
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 32, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-label-enhanced {
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label-enhanced i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.required-asterisk {
  color: #ff6b6b;
  font-weight: bold;
}

/* Enhanced card styling */
.card-enhanced {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.6);
}

.card-header-enhanced {
  background: linear-gradient(135deg, var(--burgundy-color) 0%, var(--burgundy-hover) 100%);
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  text-align: center;
  border: none;
}

.card-body-enhanced {
  padding: 2.5rem;
}

/* File upload styling */
.file-upload-area {
  border: 2px dashed var(--burgundy-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--burgundy-hover);
}

.file-upload-icon {
  font-size: 3rem;
  color: var(--burgundy-color);
  margin-bottom: 1rem;
}

/* Conditional fields animation */
.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.conditional-field.show {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.5rem;
}

/* Progress indicator */
.form-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy-color), var(--accent-color));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Estilos para validación de evidencia */
.btn-outline-danger {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  animation: pulse-danger 2s infinite;
}

.btn-outline-danger:hover {
  background-color: #dc3545 !important;
  color: white !important;
}

@keyframes pulse-danger {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

#evidencia-error {
  border-left: 4px solid #dc3545;
  font-weight: 600;
}

.file-upload-area.required {
  border: 2px dashed #dc3545 !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Enhanced buttons */
.btn-enhanced {
  border-radius: 25px;
  font-weight: 600;
  padding: 16px 32px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

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

/* Map container enhancement */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--burgundy-color);
}

/* Added SweetAlert2 custom styles to match Exo 2 font and burgundy theme */
.swal2-popup {
  font-family: "Exo 2", sans-serif !important;
}

.swal2-title {
  font-family: "Exo 2", sans-serif !important;
  font-weight: 700 !important;
}

.swal2-content {
  font-family: "Exo 2", sans-serif !important;
  font-weight: 500 !important;
}

.swal2-confirm {
  background-color: var(--burgundy-color) !important;
  border: none !important;
  font-family: "Exo 2", sans-serif !important;
  font-weight: 600 !important;
}

.swal2-confirm:hover {
  background-color: var(--burgundy-hover) !important;
}

.swal2-input {
  font-family: "Exo 2", sans-serif !important;
  font-weight: 500 !important;
}

.swal2-checkbox {
  transform: scale(1.2) !important;
}

/* Added loading spinner styles */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .container-fluid {
    padding: 10px;
  }

  .card-body {
    padding: 20px !important;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 16px;
  }

  .card-body-enhanced {
    padding: 1.5rem;
  }

  .form-control-enhanced,
  .form-select-enhanced {
    padding: 14px 16px;
  }

  .btn-enhanced {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* Loading spinner */
.spinner-border-burgundy {
  color: var(--burgundy-color);
}

/* Preview de archivos */
.file-preview {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.file-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.file-preview video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Información de dirección */
.direccion-info {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 10px;
}

/* Footer */
.footer-modern {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  /* padding: 3rem 0 1rem; */
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-content {
  color: rgba(255, 255, 255, 0.9);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 15px;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 2px;
  min-width: 20px;
}

.contact-item p {
  margin: 0;
  line-height: 1.4;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link.facebook {
  background: #3b5998;
}
.social-link.twitter {
  background: #1da1f2;
}
.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-link.youtube {
  background: #ff0000;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
  color: white;
}

.footer-divider {
  border-color: var(--accent-color);
  margin: 2rem 0 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}
