/* Custom styles for WAF Reviews Tracker */

/* Variables CSS */
:root {
  --sidebar-width: 250px;
  --navbar-height: 60px;
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 8px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.app-loader {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.app-loader-spinner {
  width: 3rem;
  height: 3rem;
}

/* Accordion icon styles */
.accordion-button::after {
  filter: brightness(0) invert(1) !important;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1) !important;
}

.accordion-button.collapsed::after {
  filter: brightness(0) invert(1) !important;
}

/* Roles badges for process steps */
.role-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}
.role-you {
  background-color: #e7f1ff;
  color: #0d6efd !important;
  border: 1px solid #b6d4fe;
}
.role-us {
  background-color: #e8f5e9;
  color: #2e7d32 !important;
  border: 1px solid #c8e6c9;
}

/* FAQ card styling within hero visuals */
.faq-card {
  width: 100%;
  padding: 20px;
}
.faq-card .hero-subtitle {
  margin-bottom: 6px;
}
.faq-card .hero-description {
  margin-bottom: 12px;
}
.faq-card .hero-features .feature-item {
  border-radius: 8px;
  padding: 8px 10px;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  box-shadow: var(--box-shadow);
  z-index: 1030;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

/* Test Version Navbar */
.navbar-test {
  background-color: var(--warning-color) !important;
  border-bottom: 2px solid #e0a800;
}

.navbar-test .navbar-brand {
  color: #212529 !important;
  font-weight: 700;
}

.navbar-test .btn-outline-light {
  color: #212529 !important;
  border-color: #212529 !important;
}

.navbar-test .btn-outline-light:hover {
  background-color: #212529 !important;
  color: var(--warning-color) !important;
}

.navbar-test #user-info .btn-outline-light {
  color: #212529 !important;
  border-color: #212529 !important;
}

.navbar-test #user-info .btn-outline-light:hover {
  background-color: #212529 !important;
  color: var(--warning-color) !important;
}

.navbar-test .navbar-text {
  color: #212529 !important;
}

.navbar-test #user-info .navbar-text {
  color: #212529 !important;
  background-color: rgba(33, 37, 41, 0.1);
}

/* Error Version Navbar */
.navbar-error {
  background-color: var(--danger-color) !important;
  border-bottom: 2px solid #b02a37;
}

.navbar-error .navbar-brand {
  color: white !important;
  font-weight: 700;
}

.navbar-error .btn-outline-light {
  color: white !important;
  border-color: white !important;
}

.navbar-error .btn-outline-light:hover {
  background-color: white !important;
  color: var(--danger-color) !important;
}

.navbar-error .navbar-text {
  color: white !important;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: white;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  z-index: 1020;
  transition: var(--transition);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
}

.sidebar-header h5 {
  margin: 0;
  font-weight: 600;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  text-decoration: none;
  border-left-color: var(--primary-color);
}

.sidebar-link.active {
  background-color: #e3f2fd;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 500;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
}

/* Sidebar Categories */
.sidebar-category {
  margin: 0;
  padding: 0;
}

.sidebar-category-title {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem 0.5rem;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
}

.sidebar-category-title i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Spacing between categories */
.sidebar-category + .sidebar-item {
  margin-top: 0.25rem;
}

/* First category doesn't need top margin */
.sidebar-category:first-child {
  margin-top: 0;
}

/* Spacing between items in the same category */
.sidebar-item + .sidebar-item {
  margin-top: 0.125rem;
}

/* Special styling for the first item in a category */
.sidebar-category + .sidebar-item {
  margin-top: 0.5rem;
}

/* Hover effect for category titles */
.sidebar-category-title:hover {
  color: var(--primary-color);
  background: #e3f2fd;
}

/* Active category styling */
.sidebar-category.active .sidebar-category-title {
  color: var(--primary-color);
  background: #e3f2fd;
  border-bottom-color: var(--primary-color);
}

/* Enhanced sidebar styling */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid #e9ecef;
}

.sidebar-header {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header h5 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

/* Improved sidebar links */
.sidebar-link {
  position: relative;
  border-radius: 0 8px 8px 0;
  margin: 2px 8px 2px 0;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transform: translateX(4px);
}

.sidebar-link.active:hover {
  background: linear-gradient(90deg, #0056b3 0%, var(--primary-color) 100%);
  color: white;
}

/* Category title enhancements */
.sidebar-category-title {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  position: relative;
}

.sidebar-category-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  opacity: 0.7;
}

.sidebar-category-title:hover {
  background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Smooth transitions for category visibility */
.sidebar-category,
.sidebar-item {
  transition: all 0.3s ease;
}

/* Enhanced footer */
.sidebar-footer {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 2px solid #dee2e6;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.version-info {
  font-weight: 500;
}

.version-info i {
  color: var(--primary-color);
  opacity: 0.8;
}

/* Sidebar Footer */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.version-info {
  font-size: 0.8rem;
  color: #6c757d;
}

.version-info i {
  color: #adb5bd;
}

.version-line,
.date-line,
.team-line {
  margin-bottom: 0.25rem;
}

.version-line:last-child,
.date-line:last-child,
.team-line:last-child {
  margin-bottom: 0;
}

/* Ajustar el sidebar para que tenga espacio para el footer */
.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: white;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  z-index: 1020;
  transition: var(--transition);
  overflow-y: auto;
  padding-bottom: 60px; /* Espacio para el footer */
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
  padding: 0;
  transition: var(--transition);
  background-color: #e3f2fd;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 2rem 1rem 0rem;
  position: relative;
  overflow: hidden;
}

.hero-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="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-title-container {
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 100%;
}

.hero-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-header i {
  font-size: 2.5rem;
  color: #ff9900;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.5;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  line-height: 1.6;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.feature-item i {
  font-size: 1rem;
  color: #28a745;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.waf-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 350px;
  margin: 2rem auto;
  justify-content: center;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: default;
  text-align: center;
  min-height: 100px;
}
.pillar-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pillar-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  color: #007bff;
  transition: all 0.3s ease;
}

.pillar-item:hover i {
  transform: scale(1.1);
  color: #0056b3;
}

.pillar-item span {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

/* Hero Footer */
.hero-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero Footer dentro del CTA */
.cta-visual-modern .hero-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1.5rem;
  margin-top: 1rem;
  color: white;
}

.process-info {
  margin-bottom: 1.5rem;
}

.process-info h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ff9900;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.process-step .step-number {
  background: #ff9900;
  color: #2c3e50;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact info dentro del CTA */
.cta-visual-modern .contact-info {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.contact-info p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-info a {
  color: #ff9900;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Service Info Section */
.service-info-section {
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.cta-content h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-content p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.info-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #ff9900);
  opacity: 0;
  transition: var(--transition);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.info-icon {
  width: 80px;
  height: 80px;
  background: var(--card-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.info-card h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--secondary-color);
  line-height: 1.6;
  margin: 0;
}

/* Request Form Container */
.request-form-container {
  padding: 0 2rem;
}

/* Additional Info Section */
.additional-info-section {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Lifecycle Progress */
.lifecycle-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

/* Hero section lifecycle progress */
.hero-footer .lifecycle-progress {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.hero-footer .lifecycle-progress .step-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.hero-footer .lifecycle-progress .progress-step.active .step-icon {
  background: #ff9900;
  color: #2c3e50;
}

.hero-footer .lifecycle-progress .progress-step.completed .step-icon {
  background: #28a745;
  color: white;
}

.hero-footer .lifecycle-progress .step-title {
  color: white;
  font-weight: 600;
}

.hero-footer .lifecycle-progress .step-description {
  color: rgba(255, 255, 255, 0.8);
}

.hero-footer .lifecycle-progress .step-number {
  color: rgba(255, 255, 255, 0.7);
}

.hero-footer .lifecycle-progress .progress-step.active .step-number {
  color: #ff9900;
}

.hero-footer .lifecycle-progress .progress-step.completed .step-number {
  color: #28a745;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.4;
  transition: var(--transition);
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.completed {
  opacity: 0.7;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
  background: var(--primary-color);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.progress-step.active .step-icon {
  background: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.progress-step.completed .step-icon {
  background: var(--success-color);
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.progress-step.active .step-number {
  color: var(--primary-color);
}

.progress-step.completed .step-number {
  color: var(--success-color);
}

.step-title {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.step-description {
  font-size: 0.75rem;
  color: var(--secondary-color);
  line-height: 1.2;
}

/* Form Sections */
.form-card {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f8f9fa;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.05),
    rgba(13, 110, 253, 0.1)
  );
  border-radius: 8px 8px 0 0;
}

.section-header h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group .form-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.form-group .form-label i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.form-text {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-top: 0.25rem;
}

.form-submit {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid #f8f9fa;
}

.form-submit .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Additional Info */
.additional-info {
  margin-top: 3rem;
}

.info-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-box h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.info-box p {
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.5;
}

/* Urgency Options Styling */
.urgency-high {
  color: var(--danger-color);
  font-weight: 500;
}

.urgency-medium {
  color: var(--warning-color);
  font-weight: 500;
}

.urgency-low {
  color: var(--success-color);
  font-weight: 500;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  background: #e3f2fd;
}

.content-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  padding: 2.5rem 2.5rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.content-header::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="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.content-header h2 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
}

.content-header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.5;
}

.content-body {
  max-width: 1200px;
  margin-left: 2rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: flex;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Review Cards */
.review-card {
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  transition: var(--transition);
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.review-card h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Request Cards */
.request-card {
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  transition: var(--transition);
  cursor: pointer;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.request-card h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.request-card .badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Task items */
.task-item {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.task-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Sortable.js styles */
.sortable-ghost {
  opacity: 0.5;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
}

.sortable-chosen {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
}

.sortable-drag {
  opacity: 0.8;
  transform: rotate(5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Visual feedback for drag and drop */
.sortable-tasks {
  min-height: 50px;
  position: relative;
}

.sortable-tasks:empty::after {
  content: "Arrastra las tareas aquí para reordenarlas";
  display: block;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 2rem;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
}

/* Drag handle animation */
.drag-handle {
  cursor: grab;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 4px;
}

.drag-handle:hover {
  color: var(--primary-color) !important;
  transform: scale(1.1);
  background: rgba(13, 110, 253, 0.1);
}

.drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

/* File list styles */
.list-group-item .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.list-group-item .badge {
  font-size: 0.7rem;
}

/* Accordion button styles */
.accordion-button.bg-primary {
  color: white !important;
}

.accordion-button.bg-primary:hover {
  background-color: #0056b3 !important;
  color: white !important;
}

.accordion-button.bg-primary:not(.collapsed) {
  background-color: #0d6efd !important;
  color: white !important;
}

/* Ensure icons in accordion buttons are white */
.accordion-button.bg-primary i,
.accordion-button.bg-primary:not(.collapsed) i,
.accordion-button.bg-primary:hover i {
  color: white !important;
}

/* Enhanced validation styles */
.form-control.is-invalid,
.form-select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
  display: block !important;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Validation animation */
.form-control.is-invalid,
.form-select.is-invalid,
textarea.is-invalid {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-item.border-success {
  border-color: var(--success-color) !important;
  background-color: #f8fff9;
}

.task-item .form-check-input:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.task-item .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.task-item .text-decoration-line-through {
  text-decoration: line-through !important;
  opacity: 0.7;
}

/* Filter select styles - auto-size to content */
.filter-select {
  width: auto !important;
  min-width: 120px;
  max-width: 200px;
}

.filter-select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collapsed-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.max-width-collapsed-text {
  max-width: 430px;
}

/* Estilos para los grupos de opciones en los filtros */
.filter-select optgroup {
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
}

.filter-select optgroup option {
  font-weight: normal;
  color: #212529;
  background-color: white;
  padding-left: 1rem;
}

.filter-select optgroup option:hover {
  background-color: #e9ecef;
}

/* Estilos mejorados para los filtros de tareas */
#task-status-filter,
#task-assignee-filter {
  transition: all 0.2s ease;
}

#task-status-filter:focus,
#task-assignee-filter:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments for task filters */
@media (max-width: 768px) {
  .card-header .d-flex.gap-2.flex-wrap {
    gap: 0.5rem !important;
  }

  .card-header .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .card-header .form-control-sm,
  .card-header .form-select-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Styles for cancelled phases */
.accordion-item.border-danger {
  border-color: #dc3545 !important;
}

.accordion-button.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.accordion-button.bg-danger:hover {
  background-color: #c82333 !important;
  color: white !important;
}

.accordion-button.bg-danger:not(.collapsed) {
  background-color: #dc3545 !important;
  color: white !important;
}

.accordion-button.bg-danger i {
  color: white !important;
}

/* Status Badges */
.badge.bg-success {
  background-color: var(--success-color) !important;
}

.badge.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--dark-color);
}

.badge.bg-danger {
  background-color: var(--danger-color) !important;
}

.badge.bg-info {
  background-color: var(--info-color) !important;
  color: var(--dark-color);
}

.badge.bg-secondary {
  background-color: var(--secondary-color) !important;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

/* Button Loading States */
.btn-loading {
  position: relative;
  cursor: not-allowed !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.btn-loading:hover {
  transform: none !important;
  box-shadow: none !important;
}

.btn-loading .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Disable button interactions during loading */
.btn-loading:disabled {
  pointer-events: none;
}

/* Modal Headers - Blue with white background */
.modal-header {
  background-color: #0d6efd;
  color: white;
  border-bottom: 1px solid #0d6efd;
  padding: 1.5rem;
}

.modal-header .modal-title {
  color: white;
  font-weight: 600;
}

.modal-header .btn-close {
  filter: invert(1) brightness(2) !important;
  opacity: 1 !important;
}

.modal-header .btn-close:hover {
  filter: invert(1) brightness(80);
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1rem 1.25rem;
}

.alert-info {
  background-color: #e3f2fd;
  color: #0c5460;
  border-left: 4px solid var(--info-color);
}

/* Modals */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Ensure modal backdrop is visible */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

body.login-modal-active .navbar,
body.login-modal-active .sidebar,
body.login-modal-active .main-content,
body.login-modal-active .modal:not(#login-modal) {
  filter: blur(3px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

body.login-modal-active .modal-backdrop {
  background-color: rgba(8, 15, 30, 0.68) !important;
}

body.login-modal-active #login-modal,
body.login-modal-active #login-modal .modal-dialog,
body.login-modal-active #login-modal .modal-content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .content-header h2 {
    font-size: 1.5rem;
  }

  .content-header {
    padding: 1.5rem 1rem 1rem;
    margin: -1rem -1rem 1.5rem -1rem;
  }

  /* Mobile sidebar adjustments */
  .sidebar-category-title {
    font-size: 0.7rem;
    padding: 0.5rem 1rem 0.25rem;
  }

  .sidebar-link {
    padding: 0.75rem 1rem;
    margin: 1px 4px 1px 0;
  }

  .sidebar-header {
    padding: 1rem 0.75rem;
  }

  .sidebar-header h5 {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .main-content {
    padding: 0.75rem;
  }

  .card-body {
    padding: 1rem;
  }

  .content-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0.5rem 0.75rem;
    margin: -0.75rem -0.75rem 1.5rem -0.75rem;
  }

  .content-header h2 {
    font-size: 1.25rem;
  }

  .content-header p {
    font-size: 1rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-muted {
  color: var(--secondary-color) !important;
}

.border-left-primary {
  border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
  border-left: 4px solid var(--success-color) !important;
}

.border-left-warning {
  border-left: 4px solid var(--warning-color) !important;
}

.border-left-danger {
  border-left: 4px solid var(--danger-color) !important;
}

/* Table Styles */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: var(--dark-color);
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Status colors */
.status-high {
  color: #dc3545;
}

.status-medium {
  color: #ffc107;
}

.status-low {
  color: #28a745;
}

/* File status indicators */
.file-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.file-status-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.file-status-uploaded {
  background-color: #28a745;
}

.file-status-processing {
  background-color: #ffc107;
}

.file-status-completed {
  background-color: #17a2b8;
}

.file-status-error {
  background-color: #dc3545;
}

/* Decision card styles */
.card.border-primary {
  border-width: 2px !important;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

.card-header h6 {
  font-weight: 600;
  margin: 0;
}

/* Edit mode styles */
.edit-mode .alert-info {
  border-left: 4px solid var(--info-color);
}

.edit-mode .form-label {
  font-weight: 500;
  color: var(--dark-color);
}

.edit-mode .form-control:read-only {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Badge size for decision */
.badge.fs-6 {
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem;
}

/* Phase status indicators */
.accordion-item.border-warning {
  border-width: 2px !important;
  border-color: #ffc107 !important;
}

.accordion-button.bg-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800) !important;
  color: #212529 !important;
  font-weight: 600;
}

.accordion-button.bg-warning:hover {
  background: linear-gradient(135deg, #e0a800, #d39e00) !important;
}

/* Phase status badges */
.badge.border.border-warning {
  border-width: 2px !important;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.3);
}

/* Current phase indicator */
.accordion-button i.fa-play-circle {
  color: #ffc107;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Fix for aria-hidden warning */
.modal.show {
  aria-hidden: false !important;
}

.modal.show[aria-hidden="true"] {
  aria-hidden: false !important;
}

/* User info styles */
#user-info {
  align-items: center;
}

#user-info .navbar-text {
  color: white !important;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  margin-right: 0.75rem;
}

#user-info .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

#user-info .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Dropdown menu styles */
#user-info .dropdown-menu {
  margin-top: 0.5rem;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

#user-info .dropdown-item {
  padding: 0.75rem 1rem;
  color: #495057;
  transition: all 0.2s ease;
}

#user-info .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

#user-info .dropdown-item.text-danger:hover,
#user-info .dropdown-item.text-danger:focus {
  background-color: #f8d7da;
  color: #721c24;
}

#user-info .dropdown-divider {
  margin: 0.5rem 0;
  border-color: #e9ecef;
}

#user-info .dropdown-header {
  font-weight: 600;
  color: #6c757d;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Phase form styles */
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
  font-weight: 500;
  color: var(--dark-color);
}

/* Tools section */
.tools-section {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
}

.tools-section h6 {
  color: var(--primary-color);
  font-weight: 600;
}

/* Complementary tools collapsible toggle */
.complementary-tools-header {
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0.25rem;
  border-radius: var(--border-radius);
  transition: background-color 0.15s ease;
  margin: -0.25rem -0.25rem 0;
}

.complementary-tools-header:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.complementary-tools-toggle {
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
  border: 1px solid #dee2e6;
  background-color: transparent;
  line-height: 1;
}

.complementary-tools-toggle:hover {
  background-color: #f0f4ff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.complementary-tools-toggle .toggle-icon {
  transition: transform 0.2s ease;
}

.complementary-tools-body {
  margin-top: 0.75rem;
}

/* Phase completion button - removed to maintain consistent button sizes */

/* Disabled form controls */
.form-control:read-only,
.form-select:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.form-check-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.phase-ball {
  transition: box-shadow 0.2s, background 0.2s;
  font-size: 1rem;
  border: 2px solid #e9ecef;
}

.phase-ball.bg-primary {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px #0d6efd;
}

.phase-ball.bg-success {
  border-color: #198754;
}

.phase-ball.bg-secondary {
  border-color: #adb5bd;
  background: #f1f3f4 !important;
  color: #adb5bd !important;
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 30000 !important;
  pointer-events: all;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}

.confirmation-dialog {
  animation: slideInCenter 0.3s ease-out;
}

.confirmation-dialog .alert-header {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.confirmation-dialog .alert-body {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.confirmation-dialog .alert-body p {
  color: #495057;
  font-size: 1rem;
  line-height: 1.5;
}

.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30001;
  max-width: 500px;
  width: 90%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideInCenter 0.3s ease-out;
}

.custom-alert.danger .alert-header {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.custom-alert.success .alert-header {
  background: linear-gradient(135deg, #198754, #146c43);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.custom-alert.warning .alert-header {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.custom-alert.info .alert-header {
  background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.custom-alert .alert-header .btn-close {
  color: white;
  opacity: 1;
  font-size: 1.2rem;
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.custom-alert .alert-header .btn-close:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.custom-alert .alert-body {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.custom-alert i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

@keyframes slideInCenter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Phase badge colors */
.phase-badge-2 {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.phase-badge-3 {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.phase-badge-4 {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.phase-badge-5 {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.phase-badge-completed {
  background: linear-gradient(135deg, #6c757d, #545b62) !important;
  color: white !important;
}

.phase-badge-unknown {
  background: linear-gradient(135deg, #6c757d, #545b62) !important;
  color: white !important;
}

@media (max-width: 991.98px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .waf-pillars {
    grid-template-columns: repeat(2, 1fr);
    max-width: 300px;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .lifecycle-progress {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .hero-footer .lifecycle-progress {
    padding: 1rem;
  }
  .progress-step {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }
  .progress-step:not(:last-child)::after {
    display: none;
  }
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .step-content {
    align-items: flex-start;
  }
  .request-form-container {
    padding: 0 0.5rem;
  }

  .additional-info-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-section {
    padding: 2rem 0.5rem;
  }
  .service-info-section {
    padding: 0 0.5rem;
  }
  .form-header h2 {
    font-size: 1.2rem;
  }
  .form-card {
    padding: 0.5rem;
  }
  .info-card {
    padding: 1rem;
  }

  .additional-info-section {
    padding: 1rem;
    margin-top: 1.5rem;
  }
  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Proceso de revisión compacto */
.process-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #e9ecef;
}

/* Mejoras para el formulario de solicitar revision */
.form-card-enhanced {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
}

.form-card-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #0056b3, #004085);
}

.enhanced-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.enhanced-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.enhanced-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.header-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header-content h5 {
  margin: 0;
  color: #495057;
  font-weight: 600;
  font-size: 1.1rem;
}

.header-content p {
  margin: 0.25rem 0 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.enhanced-form-group {
  margin-bottom: 1.5rem;
}

.enhanced-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.enhanced-label i {
  color: #007bff;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
}

.enhanced-input {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.enhanced-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
  outline: none;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.9rem;
  pointer-events: none;
}

.enhanced-input:focus + .input-icon {
  color: #007bff;
}

.form-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.5rem;
  font-style: italic;
}

.lifecycle-progress-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 1rem;
  position: relative;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.lifecycle-progress-compact::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, #007bff 0%, #e9ecef 100%);
  z-index: 1;
}

.lifecycle-progress-compact .progress-step {
  flex: 1;
  max-width: 120px;
}

.lifecycle-progress-compact .step-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid #fff;
  font-size: 0.8rem;
}

.lifecycle-progress-compact .step-title {
  font-size: 0.75rem;
  font-weight: 600;
}

.lifecycle-progress-compact .step-description {
  font-size: 0.65rem;
  line-height: 1.2;
}

/* CTA mejorado */
.cta-section-improved {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-section-improved .cta-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cta-text {
  flex: 1;
}

.cta-text h3 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.cta-text p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-visual {
  flex-shrink: 0;
}

.process-overview {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 400px;
}

.process-overview h5 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.process-steps-detailed {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-detailed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step-detailed:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-content .step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
}

.step-content .step-desc {
  font-size: 0.7rem;
  color: #6c757d;
  line-height: 1.2;
}

.step-arrow {
  color: #007bff;
  font-size: 1.2rem;
  font-weight: bold;
}

.content-header-improved {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 2rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.content-header-improved::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="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.content-header-improved .header-content {
  position: relative;
  z-index: 1;
}

.content-header-improved h2 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.content-header-improved p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}

/* Proceso de pasos mejorado */
.process-steps-improved {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-width: 600px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  transform: scale(1.1);
}

.step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-title {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.2;
}

.step-connector {
  width: 2rem;
  height: 2px;
  background: #e9ecef;
  flex-shrink: 0;
}

/* Fondo azul claro para el formulario */
.form-background {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%) !important;
}

/* Pantalla de confirmación */
.confirmation-card {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.confirmation-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 2rem;
}

.confirmation-content h3 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.confirmation-content p {
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.detail-item i {
  color: #007bff;
  font-size: 1.2rem;
  width: 1.5rem;
}

.detail-item span {
  font-weight: 500;
}

.confirmation-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.confirmation-actions .btn {
  min-width: 160px;
}

/* Estados del proceso de pasos */
.step-item.completed .step-circle {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.step-connector.active {
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

/* Headers azules para el formulario */
.section-header-blue {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.section-header-blue::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="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.section-header-blue h5 {
  color: white;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.section-header-blue p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.section-header-blue i {
  color: rgba(255, 255, 255, 0.8);
}

/* Sección de pilares con texto explicativo */
.waf-pillars-section,
.waf-faq-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: left;
  display: flex;
  margin-top: 2rem;
  width: 100%;
}

.pillars-header {
  text-align: center;
  margin-bottom: 1rem;
}

.pillars-header h5 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.pillars-header p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .cta-section-improved .cta-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .process-overview {
    min-width: auto;
    padding: 1.5rem;
  }

  .process-steps-detailed {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .step-detailed {
    min-width: 80px;
  }

  .process-steps-improved {
    flex-direction: column;
    gap: 1.5rem;
    max-width: none;
  }

  .step-connector {
    width: 2px;
    height: 1rem;
  }

  .waf-pillars {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .waf-pillars-section,
  .waf-faq-section {
    display: grid;
  }

  .confirmation-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  .confirmation-details {
    gap: 0.75rem;
  }

  .detail-item {
    padding: 0.75rem;
  }

  .content-header-clean h2 {
    font-size: 1.75rem;
  }

  .content-header-clean p {
    font-size: 1rem;
  }

  .section-header-clean {
    padding: 1.25rem;
  }

  .section-header-clean h5 {
    font-size: 1.1rem;
  }

  .explanation-card {
    padding: 1.25rem;
  }

  .explanation-header h5 {
    font-size: 1.1rem;
  }

  .process-explanation-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .header-main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .header-icon-large {
    width: 60px;
    height: 60px;
  }

  .header-icon-large i {
    font-size: 1.5rem;
  }

  .header-text h2 {
    font-size: 1.75rem;
  }

  .cta-content-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    display: table !important;
  }

  .cta-visual-modern {
    gap: 1.5rem;
  }

  .cta-visual-modern .hero-footer {
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .cta-header-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .cta-header-row .cta-button-modern {
    align-self: center;
  }

  .cta-background {
    padding: 2rem;
  }

  .process-steps-modern {
    gap: 0.5rem;
  }

  .step-modern {
    min-width: 60px;
  }

  .step-icon-modern {
    width: 40px;
    height: 40px;
  }

  .step-icon-modern i {
    font-size: 1rem;
  }

  .step-modern span {
    font-size: 0.8rem;
  }
}

/* Content Header Clean - Sin color de fondo */
.content-header-clean {
  background: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.content-header-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0056b3);
}

.content-header-clean .header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-header-clean h2 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.content-header-clean p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin: 0;
}

/* Section Header Clean - Sin color de fondo */
.section-header-clean {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.section-header-clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.05),
    rgba(0, 86, 179, 0.05)
  );
  border-radius: var(--border-radius);
  z-index: -1;
}

.section-header-clean h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.section-header-clean p {
  color: var(--secondary-color);
  margin: 0;
  font-size: 0.95rem;
}

.section-header-clean i {
  color: var(--primary-color);
}

/* Process Explanation */
.process-explanation {
  margin-bottom: 2rem;
}

.explanation-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

.explanation-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.explanation-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.explanation-header h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin: 0;
}

.explanation-card p {
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.6;
}

.explanation-card strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Process Explanation Layout - Dos columnas */
.process-explanation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-left: 2rem;
}

.explanation-column {
  display: flex;
  flex-direction: column;
}

.process-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-column img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Content Header Enhanced - Cabecera mejorada */
.content-header-enhanced {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  overflow: hidden;
}

.content-header-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0056b3, #17a2b8);
}

.content-header-enhanced .header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.header-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.header-icon-large i {
  font-size: 2rem;
  color: white;
}

.header-text h2 {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.header-text p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.header-decoration {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.decoration-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.decoration-dots {
  display: flex;
  gap: 0.5rem;
}

.decoration-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.6;
}

.decoration-dots span:nth-child(2) {
  opacity: 0.8;
}

.decoration-dots span:nth-child(3) {
  opacity: 1;
}

/* CTA Section Modern */
.cta-section-modern {
  position: relative;
}

.cta-background {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.cta-content-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-main {
  color: white;
}

.cta-header-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 1.5rem;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.important-message {
  color: #ffd700;
}

.cta-badge i {
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-badge span {
  font-weight: 600;
}

.cta-main h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-main p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cta-feature i {
  color: #4ade80;
  font-size: 1.1rem;
}

.cta-feature span {
  font-weight: 500;
}

.cta-button-modern {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button-modern::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 ease;
}

.cta-button-modern:hover::before {
  left: 100%;
}

.cta-button-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 222, 128, 0.6);
}

.cta-visual-modern {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.process-overview-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
}

.process-overview-modern img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.process-overview-modern h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.process-steps-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}

.step-icon-modern {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-icon-modern i {
  color: white;
  font-size: 1.2rem;
}

.step-modern span {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.step-arrow-modern {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* Request ID styles */
.request-id-item {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(0, 86, 179, 0.1)
  );
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.request-id-highlight {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Activity Timeline Styles */
.activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.activity-timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e9ecef 0%, #dee2e6 50%, #e9ecef 100%);
}

.activity-item {
  position: relative;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid #6c757d;
  display: flex;
  align-items: flex-start;
  margin-left: 1rem;
}

.activity-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-left-width: 6px;
}

.activity-item:hover .activity-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Activity item colors based on ACTION TYPE - IMPROVED SCHEME */
/* 🟢 Verde (#198754) - Crear */
.activity-item.create {
  border-left-color: #198754;
}

/* 🔵 Azul (#0d6efd) - Actualizar */
.activity-item.update {
  border-left-color: #0d6efd;
}

/* 🔴 Rojo (#dc3545) - Eliminar */
.activity-item.delete {
  border-left-color: #dc3545;
}

/* 🔦 Teal (#20c997) - Generación */
.activity-item.generate {
  border-left-color: #20c997;
}

/* 🟠 Naranja (#fd7e14) - Archivos */
.activity-item.files {
  border-left-color: #fd7e14;
}

/* 🟣 Morado (#6f42c1) - Inicio de sesión */
.activity-item.login {
  border-left-color: #6f42c1;
}

/* 🟡 Amarillo (#ffc107) - Rechazar */
.activity-item.reject {
  border-left-color: #ffc107;
}

/* 🔴 Rojo oscuro (#721c24) - Errores */
.activity-item.error {
  border-left-color: #721c24;
  background-color: #faeaea !important;
}

/* Default for other actions */
.activity-item.default {
  border-left-color: #6c757d;
}

.activity-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background: white;
  border: 2px solid #6c757d;
  border-radius: 50%;
  z-index: 1;
}

/* Activity circle colors based on ACTION TYPE */
.activity-item.create::before {
  border-color: #198754;
}

.activity-item.update::before {
  border-color: #0d6efd;
}

.activity-item.delete::before {
  border-color: #dc3545;
}

.activity-item.generate::before {
  border-color: #20c997;
}

.activity-item.files::before {
  border-color: #fd7e14;
}

.activity-item.login::before {
  border-color: #6f42c1;
}

.activity-item.reject::before {
  border-color: #ffc107;
}

.activity-item.error::before {
  border-color: #721c24;
}

.activity-item.default::before {
  border-color: #6c757d;
}

.activity-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  background: #6c757d;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 1rem;
  height: 1rem;
  font-size: 0.5rem;
}

/* Activity icon colors based on ACTION TYPE */
.activity-icon.create {
  background: #198754;
}

.activity-icon.update {
  background: #0d6efd;
}

.activity-icon.delete {
  background: #dc3545;
}

.activity-icon.generate {
  background: #20c997;
}

.activity-icon.files {
  background: #fd7e14;
}

.activity-icon.login {
  background: #6f42c1;
}

.activity-icon.reject {
  background: #ffc107;
}

.activity-icon.error {
  background: #721c24;
}

.activity-icon.default {
  background: #6c757d;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

/* Activity title colors based on action type */
.activity-item.create .activity-title {
  color: #198754 !important;
}

.activity-item.update .activity-title {
  color: #0d6efd !important;
}

.activity-item.delete .activity-title {
  color: #dc3545 !important;
}

.activity-item.generate .activity-title {
  color: #20c997 !important;
}

.activity-item.files .activity-title {
  color: #fd7e14 !important;
}

.activity-item.login .activity-title {
  color: #6f42c1 !important;
}

.activity-item.reject .activity-title {
  color: #ffc107 !important;
}

.activity-item.error .activity-title {
  color: #721c24 !important;
}

.activity-item.default .activity-title {
  color: #6c757d !important;
}

.activity-details {
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.5;
}

.activity-details strong {
  color: #212529;
}

.activity-details small {
  display: block;
  margin-top: 0.25rem;
}

/* Remove the gray box styling from activity details */
.activity-details small.text-muted {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e9ecef;
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.activity-details small.text-muted i {
  color: #6c757d;
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

/* Global activity timeline */
.global-activity-timeline {
  position: relative;
  padding-left: 2rem;
}

.global-activity-timeline .activity-item {
  margin-bottom: 1rem;
}

.global-activity-timeline .activity-icon {
  margin-right: 1rem;
}

/* Activity summary and filters */
#activity-summary,
#global-activity-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

#activity-summary .text-muted,
#global-activity-summary .text-muted {
  font-size: 0.875rem;
}

/* Unificar tamaños de todos los selects y inputs de filtros - altura aumentada para coincidir con botones */
#activity-type-filter,
#global-activity-type-filter,
#activity-period-filter,
#global-activity-period-filter,
.filter-select,
#global-activity-user-filter,
#task-assignee-filter,
#request-search,
#review-search {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 0.375rem !important;
  background-color: #fff !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

#activity-type-filter:focus,
#global-activity-type-filter:focus,
#activity-period-filter:focus,
#global-activity-period-filter:focus,
.filter-select:focus,
#global-activity-user-filter:focus,
#task-assignee-filter:focus,
#request-search:focus,
#review-search:focus {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
  outline: none !important;
}

/* Activity loading and empty states */
#activity-empty {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

#activity-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

#activity-loading,
#global-activity-loading {
  text-align: center;
  padding: 2rem;
}

/* Modal styles */
#activity-history-modal .modal-dialog {
  max-width: 800px;
}

#activity-history-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#reviewModal .modal-dialog {
  width: min(1180px, calc(100vw - 2rem));
  max-width: min(1180px, calc(100vw - 2rem));
  margin: 1rem auto;
}

#reviewModal .modal-body {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

#reviewModal .modal-header {
  align-items: flex-start;
  gap: 1rem;
}

#reviewModal .modal-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

#reviewModal #review-detail-content > .row:first-child {
  --bs-gutter-x: 1rem;
}

#reviewModal #review-detail-content > .row:first-child > .col-md-6 {
  margin-bottom: 1rem;
}

#reviewModal #review-detail-content > .row:first-child .card {
  height: 100%;
}

#reviewModal #review-detail-content > .row:first-child .card-body .row {
  align-items: start;
}

#reviewModal #review-detail-content > .row:first-child .card-body .col-4 {
  flex: 0 0 38%;
  max-width: 38%;
  word-break: normal;
}

#reviewModal #review-detail-content > .row:first-child .card-body .col-8 {
  flex: 0 0 62%;
  max-width: 62%;
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  #reviewModal #review-detail-content > .row:first-child > .col-md-6 {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  #reviewModal .modal-dialog {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  #reviewModal .modal-header,
  #reviewModal .modal-body {
    padding: 1rem;
  }

  #reviewModal .modal-title {
    font-size: 1.1rem;
  }

  #reviewModal #review-detail-content > .row:first-child .card-body .row {
    display: block;
    margin-bottom: 0.9rem;
  }

  #reviewModal #review-detail-content > .row:first-child .card-body .col-4,
  #reviewModal #review-detail-content > .row:first-child .card-body .col-8 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  #reviewModal #review-detail-content > .row:first-child .card-body .col-4 {
    margin-bottom: 0.2rem;
  }

  #reviewModal #review-detail-content > .row:first-child .badge.fs-6 {
    font-size: 0.9rem !important;
    white-space: normal;
  }
}

/* User Settings Modal - Ensure it appears above overlay */
#user-settings-modal {
  z-index: 25000 !important;
}

#user-settings-modal .modal-dialog {
  z-index: 25001 !important;
}

#user-settings-modal .modal-content {
  z-index: 25002 !important;
}

/* Error styling for activity items - HIGHER SPECIFICITY */
.activity-item.activity-error {
  background-color: #fdf2f2 !important;
  border-left-color: #721c24 !important;
}

.activity-item.activity-error .activity-icon {
  background-color: #721c24 !important;
  color: white !important;
}

.activity-item.activity-error .activity-title {
  color: #721c24 !important;
}

.activity-item.activity-error::before {
  border-color: #721c24 !important;
}

.activity-item.activity-error .activity-details .text-danger {
  font-weight: 600;
}

/* Override any other color classes when error is present */
.activity-item.activity-error.create,
.activity-item.activity-error.update,
.activity-item.activity-error.delete,
.activity-item.activity-error.login,
.activity-item.activity-error.reject,
.activity-item.activity-error.generate,
.activity-item.activity-error.files,
.activity-item.activity-error.error,
.activity-item.activity-error.default {
  border-left-color: #721c24 !important;
  background-color: #fdf2f2 !important;
}

.activity-item.activity-error.create .activity-icon,
.activity-item.activity-error.update .activity-icon,
.activity-item.activity-error.delete .activity-icon,
.activity-item.activity-error.login .activity-icon,
.activity-item.activity-error.reject .activity-icon,
.activity-item.activity-error.generate .activity-icon,
.activity-item.activity-error.files .activity-icon,
.activity-item.activity-error.error .activity-icon,
.activity-item.activity-error.default .activity-icon {
  background-color: #721c24 !important;
  color: white !important;
}

.activity-item.activity-error.create .activity-title,
.activity-item.activity-error.update .activity-title,
.activity-item.activity-error.delete .activity-title,
.activity-item.activity-error.login .activity-title,
.activity-item.activity-error.reject .activity-title,
.activity-item.activity-error.generate .activity-title,
.activity-item.activity-error.files .activity-title,
.activity-item.activity-error.error .activity-title,
.activity-item.activity-error.default .activity-title {
  color: #721c24 !important;
}

.activity-item.activity-error.create::before,
.activity-item.activity-error.update::before,
.activity-item.activity-error.delete::before,
.activity-item.activity-error.login::before,
.activity-item.activity-error.reject::before,
.activity-item.activity-error.generate::before,
.activity-item.activity-error.files::before,
.activity-item.activity-error.error::before,
.activity-item.activity-error.default::before {
  border-color: #721c24 !important;
}

/* Activity badges */
.activity-id-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: normal;
  text-align: left;
  min-width: 200px;
}

.activity-id-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.activity-id-badge i {
  font-size: 0.875rem;
  margin-right: 0.375rem;
}

.activity-id-badge .change-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.activity-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
  margin-right: 0.25rem;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.activity-detail-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.activity-detail-badge i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Responsive styles */
@media (max-width: 767.98px) {
  .activity-timeline {
    padding-left: 1.5rem;
  }

  .activity-timeline::before {
    left: 0.75rem;
  }

  .activity-item::before {
    left: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
  }

  .activity-item {
    padding: 0.75rem;
  }

  .activity-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .global-activity-timeline {
    padding-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .activity-item {
    padding: 0.75rem;
  }

  .activity-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .activity-timeline,
  .global-activity-timeline {
    padding-left: 1.5rem;
  }
}

/* Mejorar visibilidad de colores de actividad - FORZAR colores específicos */
.activity-item.create {
  border-left-color: #198754 !important;
}
.activity-item.update {
  border-left-color: #0d6efd !important;
}

.activity-item.delete {
  border-left-color: #dc3545 !important;
}

.activity-item.login {
  border-left-color: #6f42c1 !important;
}
.activity-item.reject {
  border-left-color: #ffc107 !important;
}

.activity-item.default {
  border-left-color: #6c757d !important;
}

.activity-item.create::before {
  border-color: #198754 !important;
}
.activity-item.update::before {
  border-color: #0d6efd !important;
}
.activity-item.document::before {
  border-color: #20c997 !important;
}
.activity-item.delete::before {
  border-color: #dc3545 !important;
}

.activity-item.login::before {
  border-color: #6f42c1 !important;
}
.activity-item.reject::before {
  border-color: #ffc107 !important;
}

.activity-item.default::before {
  border-color: #6c757d !important;
}

.activity-icon.create {
  background-color: #198754 !important;
}
.activity-icon.update {
  background-color: #0d6efd !important;
}
.activity-icon.delete {
  background-color: #dc3545 !important;
}
.activity-icon.file {
  background-color: #fd7e14 !important;
}
.activity-icon.login {
  background-color: #6f42c1 !important;
}
.activity-icon.reject {
  background-color: #ffc107 !important;
  color: #212529 !important;
}
.activity-icon.system {
  background-color: #721c24 !important;
}
.activity-icon.default {
  background-color: #6c757d !important;
}
.activity-icon.document {
  background-color: #20c997 !important;
}

/* Estilos para la lista visual de requisitos de contraseña */
.password-requirements-list li {
  font-size: 0.97rem;
  margin-bottom: 0.15rem;
  color: #dc3545;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.password-requirements-list li.text-success {
  color: #198754 !important;
}
.password-requirements-list li.text-danger {
  color: #dc3545 !important;
}
.password-requirements-list li i.fa-check-circle {
  color: #198754;
}
.password-requirements-list li i.fa-times-circle {
  color: #dc3545;
}

/* Fondos suaves por tipo de actividad */
.activity-item.create:not(.activity-error) {
  background-color: #eafaf1 !important; /* Verde suave */
}
.activity-item.update:not(.activity-error) {
  background-color: #eaf1fa !important; /* Azul suave */
}
.activity-item.delete:not(.activity-error) {
  background-color: #faeaea !important; /* Rojo suave */
}
.activity-item.generate:not(.activity-error) {
  background-color: #e8f8f5 !important; /* Teal suave */
}
.activity-item.files:not(.activity-error) {
  background-color: #fff4e6 !important; /* Naranja suave */
}
.activity-item.login:not(.activity-error) {
  background-color: #f3eafd !important; /* Morado suave */
}
.activity-item.reject:not(.activity-error) {
  background-color: #fffbe8 !important; /* Amarillo suave */
}
.activity-item.error:not(.activity-error) {
  background-color: #fdf2f2 !important; /* Rojo oscuro suave */
}
.activity-item.default:not(.activity-error) {
  background-color: #f8f9fa !important;
}

.activity-error-legend {
  width: 1rem;
  height: 1rem;
  font-size: 0.5rem;
  background-color: #b02a37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Aumentar especificidad para los colores de icono, círculo y título */
.activity-item.create .activity-icon,
.activity-item.create .activity-title,
.activity-item.create::before {
  color: #198754 !important;
}
.activity-item.update .activity-icon,
.activity-item.update .activity-title,
.activity-item.update::before {
  color: #0d6efd !important;
}
.activity-item.delete .activity-icon,
.activity-item.delete .activity-title,
.activity-item.delete::before {
  color: #ffc107 !important;
}
.activity-item.login .activity-icon,
.activity-item.login .activity-title,
.activity-item.login::before {
  color: #6f42c1 !important;
}
.activity-item.reject .activity-icon,
.activity-item.reject .activity-title,
.activity-item.reject::before {
  color: #dc3545 !important;
}
.activity-item.system .activity-icon,
.activity-item.system .activity-title,
.activity-item.system::before {
  color: #dc3545 !important;
}
.activity-item.default .activity-icon,
.activity-item.default .activity-title,
.activity-item.default::before {
  color: #6c757d !important;
}

/* Icono blanco por defecto en el círculo */
.activity-icon i {
  color: #fff !important;
}
/* Icono negro solo para fondo amarillo (delete) */
/* .activity-icon.delete i {
  color: #212529 !important;
} */

/* WAF Insights Hero Section */
.waf-insights-hero {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  animation: fadeInDown 0.7s;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.15);
}
.animated-bounce {
  animation: bounce 1.2s infinite alternate;
}

/* Pillar Cards */
.pillar-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.pillar-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18);
  z-index: 2;
}
.pillar-icon {
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.pillar-card:hover .pillar-icon {
  transform: scale(1.15) rotate(-8deg);
  filter: brightness(1.2);
}

/* Fade-in animation for pillar cards */
.animated-fadein {
  animation: fadein 0.7s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Color del caret de Bootstrap en los headers colapsables de WAF Insights */
.accordion-button.collapsed::after {
  color: #0d6efd !important;
}

/* Cuando está expandido, los iconos siguen siendo blancos (por defecto) */
.accordion-button:not(.collapsed) i {
  color: #fff !important;
}

/* CSS específico solo para el modal de WAF Insights cuando está abierto */
#wafInsightsModal.show {
  z-index: 1056 !important;
}

/* Solo aplicar backdrop especial cuando el modal de WAF Insights está activo */
#wafInsightsModal.show ~ .modal-backdrop,
#wafInsightsModal.show + .modal-backdrop {
  z-index: 1055 !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
}

.header-ia-tool {
  background-color: var(--dark-color) !important;
}
.text-color-ia-tool {
  color: var(--bs-yellow) !important;
  /* color: yellow !important; */
}
/* Fix p
ara el contraste del dropdown del usuario en versión local/error */
.navbar-error #user-info .btn-outline-light {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-error #user-info .btn-outline-light:hover,
.navbar-error #user-info .btn-outline-light:focus,
.navbar-error #user-info .btn-outline-light.show {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

.navbar-error #user-info .btn-outline-light.dropdown-toggle::after {
  border-top-color: white !important;
}

/* Mejorar contraste del dropdown menu en versión error */
.navbar-error .dropdown-menu {
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.navbar-error .dropdown-item {
  color: #212529 !important;
}

.navbar-error .dropdown-item:hover,
.navbar-error .dropdown-item:focus {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

.navbar-error .dropdown-item.text-danger {
  color: #dc3545 !important;
}

.navbar-error .dropdown-item.text-danger:hover,
.navbar-error .dropdown-item.text-danger:focus {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.navbar-error .dropdown-item-text {
  color: #6c757d !important;
}

/* También aplicar los mismos estilos para la versión test (amarilla) */
.navbar-test #user-info .btn-outline-light {
  color: #212529 !important;
  border-color: rgba(33, 37, 41, 0.5) !important;
  background-color: rgba(33, 37, 41, 0.1) !important;
}

.navbar-test #user-info .btn-outline-light:hover,
.navbar-test #user-info .btn-outline-light:focus,
.navbar-test #user-info .btn-outline-light.show {
  background-color: rgba(33, 37, 41, 0.2) !important;
  border-color: #212529 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25) !important;
}

.navbar-test #user-info .btn-outline-light.dropdown-toggle::after {
  border-top-color: #212529 !important;
}

/* Asegurar que el texto del email sea visible */
.navbar-error #user-info #user-email {
  color: white !important;
  font-weight: 500;
}

.navbar-test #user-info #user-email {
  color: #212529 !important;
  font-weight: 500;
}

/* Mejorar la visibilidad del icono del usuario */
.navbar-error #user-info .fas.fa-user-circle {
  color: white !important;
}

.navbar-test #user-info .fas.fa-user-circle {
  color: #212529 !important;
}
