/**
* LB Editores - Modern Style Enhancement
* Modern design improvements with contemporary UI/UX patterns
*/

:root {
  /* Modern Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
  
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5576c;
  --text-dark: #2d3748;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.25);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== Global Enhancements ===== */
body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Header Modern Styles ===== */
#header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

#header #logo h1 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Modern Navigation */
.nav-menu a {
  position: relative;
  font-weight: 500;
  transition: var(--transition-base);
  color: var(--text-dark) !important;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu .menu-active a::after {
  width: 100%;
}

/* ===== Intro Section Modern ===== */
#intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
  position: relative;
  overflow: hidden;
}

#intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.intro-text {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#intro h2 {
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  letter-spacing: -1px;
}

#intro p {
  font-weight: 300;
  text-shadow: 0 1px 5px rgba(0,0,0,0.1);
  opacity: 0.95;
}

#intro .btn-get-started {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

#intro .btn-get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--transition-base);
}

#intro .btn-get-started:hover::before {
  left: 100%;
}

#intro .btn-get-started:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Product Screens Modern */
.product-screens img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform var(--transition-slow);
}

.product-screens img:hover {
  transform: translateY(-10px) scale(1.02);
}

/* ===== Section Headers Modern ===== */
.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-weight: 700;
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.section-divider {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  margin: var(--spacing-md) auto;
  border-radius: var(--radius-full);
}

.section-description {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Gallery Modern Cards ===== */
#gallery {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
}

#gallery .container-fluid {
  padding: 0 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  margin-bottom: 2rem;
  background: var(--bg-white);
  height: 100%;
}

.gallery-item a {
  display: block;
  position: relative;
  z-index: 10;
  height: 100%;
}

.gallery-item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover a::before {
  opacity: 0.8;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
  position: relative;
  border-radius: var(--radius-lg);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Info Overlay */
.gallery-item a::after {
  content: '📖 Ver Publicación';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  color: var(--primary-color);
  font-weight: 700;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  z-index: 2;
  pointer-events: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover a::after {
  transform: translateY(0);
}

/* Gallery Grid Enhancement */
#gallery .row {
  margin-left: -1rem;
  margin-right: -1rem;
}

#gallery .row > [class*='col-'] {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 1rem;
}

/* Magazine Style Border */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
  pointer-events: none;
  z-index: 5;
}

.gallery-item:hover::before {
  border-color: rgba(102, 126, 234, 0.3);
}

/* ===== About Section Modern ===== */
#about {
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 50%, #edf2f7 100%);
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.05), transparent);
  pointer-events: none;
}

/* Image Container with Decoration */
.about-img-wrapper {
  padding: 2rem;
}

.about-img-container {
  position: relative;
  border-radius: var(--radius-xl);
}

.about-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-slow);
}

.about-img-container:hover .about-main-img {
  transform: scale(1.02);
}

.about-img-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  z-index: 1;
  opacity: 0.15;
  transition: all var(--transition-slow);
}

.about-img-container:hover .about-img-decoration {
  transform: translate(-5px, -5px);
  opacity: 0.25;
}

/* Content Styling */
#about .content {
  padding: 2rem 1rem;
}

.about-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.5px;
}

.about-badge i {
  margin-right: 0.5rem;
}

.about-main-title {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.about-subtitle {
  color: var(--text-light);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-description {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Feature Items */
.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
  border-left: 4px solid transparent;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  margin-right: 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-content h4 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Statistics Cards */
.stats-row {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.stat-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 50%;
  position: relative;
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: var(--primary-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover .stat-icon::before {
  opacity: 1;
}

.stat-icon i {
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 992px) {
  .about-main-title {
    font-size: 2rem;
  }
  
  .about-img-wrapper {
    margin-bottom: 2rem;
  }
  
  .stats-row {
    margin-top: 2rem;
  }
}

/* ===== Footer Modern ===== */
#footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#footer .copyright {
  font-weight: 500;
}

#footer .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
  position: relative;
  margin: 0 var(--spacing-sm);
}

#footer .footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
}

#footer .footer-links a:hover {
  color: white;
}

#footer .footer-links a:hover::after {
  width: 100%;
}

/* ===== Back to Top Modern ===== */
.back-to-top {
  background: var(--primary-gradient);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 30px;
  bottom: 30px;
  transition: all var(--transition-base);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  #intro h2 {
    font-size: 2rem;
  }
  
  #about .content h2 {
    font-size: 1.5rem;
  }
}

/* ===== Loading Animation ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Smooth Scroll Behavior ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Selection Styling ===== */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}
