/* ===== ESTILOS PRINCIPALES - HEALTH-SITE.NET ===== */
:root {
  --primary: #198754;
  --primary-dark: #146c43;
  --secondary: #6c757d;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --light: #f8f9fa;
  --dark: #212529;
  --gradient-primary: linear-gradient(135deg, #198754 0%, #146c43 100%);
  --gradient-danger: linear-gradient(135deg, #dc3545 0%, #a71e2a 100%);
  --gradient-warning: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #212529;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

/* ===== NAVEGACIÓN ===== */
.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.75rem !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link-custom {
  font-weight: 500;
  color: #495057 !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover::after {
  width: 80%;
}

.nav-cta {
  background: var(--gradient-danger) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: 600;
  transition: all 0.3s ease !important;
  border: none;
}

.nav-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
  color: white !important;
}

/* ===== HERO SECTIONS ===== */
.hero-sales {
  background: var(--gradient-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-sales::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 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
  background-size: cover;
}

.hero-bg-article {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section {
  background: var(--gradient-danger);
  color: white;
  padding: 4rem 0;
  position: relative;
}

/* ===== ARTÍCULOS ===== */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.fluid-article {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.overlap-container {
  margin-top: -50px;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.breadcrumb-nav {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

/* ===== SOCIAL PROOF ===== */
.social-proof-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-proof-bar .item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.social-proof-bar .item i {
  font-size: 1.25rem;
}

/* ===== ELEMENTOS DESTACADOS ===== */
.highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid var(--success);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.quote-box {
  font-style: italic;
  background: var(--light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  font-weight: bold;
}

/* ===== BOTONES Y CTAs ===== */
.cta-button {
  display: inline-block;
  background: var(--gradient-danger);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* ===== TARJETAS ===== */
.card {
  border: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.next-article-card {
  background: white;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.next-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ===== OFERTAS Y COUNTDOWN ===== */
.offer-box {
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  border: 2px solid var(--danger);
}

.countdown-box {
  background: var(--gradient-warning);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  margin: 2rem 0;
}

#countdown {
  font-family: 'Courier New', monospace;
  font-weight: 800;
}

/* ===== CONTENT LOCKER ===== */
.locker-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px dashed var(--warning);
  border-radius: 0.75rem;
}

/* ===== TESTIMONIOS ===== */
.testimonial-card {
  border-left: 4px solid var(--primary);
  background: var(--light);
}

/* ===== BADGES ===== */
.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
}

/* ===== ANIMACIONES ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.pulse-effect {
  animation: pulse 2s infinite;
}

/* ===== FOOTER ===== */
.legal-footer {
  background: #f8f9fa;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.875rem;
  color: #6c757d;
}

.legal-footer a {
  color: var(--primary);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  
  .hero-sales, .hero-section, .hero-bg-article {
    padding: 2rem 0;
  }
  
  .social-proof-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .overlap-container {
    margin-top: -30px;
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .nav-cta {
    margin-top: 0.5rem;
    display: inline-block;
    width: auto;
  }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== IMPRESIÓN ===== */
@media print {
  .nav-cta, .cta-button, .locker-box, .countdown-box {
    display: none !important;
  }
}

/*
 * Styles required for the muscle health articles 
 * (amino-acid-deficiency-muscle-loss-over-50.html 
 * and protein-powder-fails-after-50-eaa-fix.html)
*/

.muscle-fact-box {
    background-color: #fff0e6;
    border: 3px solid #ff7f50; /* Coral/Orange for strength/danger */
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}
.muscle-fact-box h3 {
    color: #ff7f50;
    font-weight: 700;
}
.cta-box-secondary {
    background-color: #f7e0e0; 
    border: 3px solid var(--danger);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
/* Custom styles for content locker */
.locker-box {
    background-color: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}