/*---------------------------------------
  HEADER ENHANCEMENTS - Jh Soft Perú
-----------------------------------------*/

/* Main header container improvements */
.site-header {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center center;
}

/* Enhanced overlay with gradient */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(8, 108, 169, 0.85) 0%, 
    rgba(13, 202, 240, 0.75) 50%,
    rgba(8, 108, 169, 0.85) 100%);
  z-index: 1;
}

/* Container centering */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  position: relative;
  z-index: 3;
}

/* Row improvements */
.site-header .row {
  width: 100%;
  margin: 0;
  justify-content: center;
  align-items: center;
}

/* Column centering */
.site-header .col-lg-12 {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Enhanced title styling */
.site-header h1 {
  position: relative;
  z-index: 3;
  animation: fadeInUp 0.8s ease-out;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: var(--font-weight-bold);
  color: var(--white-color);
  text-align: center;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Decorative lines above and below title */
.site-header h1::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(13, 202, 240, 0.4);
}

.site-header h1::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(13, 202, 240, 0.4);
}

/* Enhanced breadcrumb container */
nav[aria-label="breadcrumb"] {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out 0.2s both;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-large);
  display: inline-block;
  padding: 15px 30px 10px 30px;
  margin-top: 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 200px;
}

nav[aria-label="breadcrumb"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
  border-color: var(--secondary-color);
}

/* Breadcrumb list styling */
.breadcrumb {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Breadcrumb links */
.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  font-size: 14px;
  white-space: nowrap;
  background: rgba(8, 108, 169, 0.05);
  border: 1px solid transparent;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
  background: rgba(13, 202, 240, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.2);
}

/* Active breadcrumb item */
.breadcrumb-item.active {
  color: var(--p-color);
  font-weight: var(--font-weight-semibold);
  padding: 8px 16px;
  font-size: 14px;
  background: rgba(113, 114, 117, 0.1);
  border-radius: var(--border-radius-small);
}

/* Breadcrumb separators */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
  font-weight: bold;
  margin: 0 10px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(13, 202, 240, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced responsive design */
@media (max-width: 1400px) {
  .site-header h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 1200px) {
  .site-header h1 {
    font-size: 3rem;
  }
  
  .site-header h1::before,
  .site-header h1::after {
    width: 70px;
  }
}

@media (max-width: 992px) {
  .site-header h1 {
    font-size: 2.8rem;
  }
  
  .site-header {
    padding-top: 120px;
    padding-bottom: 40px;
  }
  
  nav[aria-label="breadcrumb"] {
    padding: 12px 25px 8px 25px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 100px;
    padding-bottom: 30px;
    min-height: 300px;
  }
  
  .site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .site-header h1::before,
  .site-header h1::after {
    width: 60px;
    height: 3px;
  }
  
  nav[aria-label="breadcrumb"] {
    padding: 10px 20px 6px 20px;
    margin-top: 25px;
    min-width: 180px;
  }
  
  .breadcrumb-item a,
  .breadcrumb-item.active {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 8px;
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .site-header {
    padding-top: 80px;
    padding-bottom: 25px;
    min-height: 250px;
  }
  
  .site-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .site-header h1::before,
  .site-header h1::after {
    width: 50px;
    height: 2px;
  }
  
  nav[aria-label="breadcrumb"] {
    padding: 8px 16px 4px 16px;
    margin-top: 20px;
    min-width: 160px;
  }
  
  .breadcrumb {
    flex-direction: column;
    gap: 8px;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    display: none;
  }
  
  .breadcrumb-item a,
  .breadcrumb-item.active {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Print styles */
@media print {
  .site-header {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
  }
  
  .site-header .section-overlay,
  .site-header::before {
    display: none;
  }
  
  .site-header h1 {
    color: var(--white-color) !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .site-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  nav[aria-label="breadcrumb"] {
    border: 2px solid var(--dark-color);
    background: var(--white-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .site-header h1,
  nav[aria-label="breadcrumb"] {
    animation: none;
  }
  
  .breadcrumb-item a:hover {
    transform: none;
  }
  
  nav[aria-label="breadcrumb"]:hover {
    transform: none;
  }
}
