/* =========================================
   VERDE VIDA RECICLA - Stylesheet
   Bootstrap 5.3 + Custom Styles
   ========================================= */

:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --secondary: #4CAF50;
  --accent: #FFF9C4;
  --light-bg: #F1F8E9;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark) !important;
}

.navbar-brand span {
  color: var(--secondary);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Services Section */
.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.service-card {
  text-align: center;
  padding: 2rem;
}

.service-card h4 {
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1rem 0;
}

.service-card ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 2rem;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 45px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  z-index: 0;
}

/* Team Section */
.team-member {
  text-align: center;
  padding: 1.5rem;
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--light-bg);
}

.team-member h5 {
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Values Section */
.value-card {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.value-card:hover {
  background: var(--primary);
  color: var(--white);
}

.value-card:hover h4,
.value-card:hover p {
  color: var(--white);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.value-card:hover .value-icon {
  color: var(--white);
}

/* Blog Section */
.blog-card .card-img-top {
  height: 180px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-meta i {
  margin-right: 0.25rem;
}

.pagination .page-link {
  color: var(--primary);
  border-color: #dee2e6;
  margin: 0 0.25rem;
  border-radius: 8px !important;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* Contact Section */
.contact-info {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-form .form-control {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15);
}

.contact-form .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  display: inline;
  margin: 0 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cookie-banner .btn {
  margin: 0 0.5rem;
}

/* Legal Pages */
.legal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  color: var(--primary-dark);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--primary-dark);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cookie-banner .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.form-control:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}