/* Downloads Page Styles */
:root {
  --primary-color: #00ffbf;
  --secondary-color: #000000;
  --text-color: #ffffff;
  --dark-bg: #0a0a0a;
  --card-bg: rgba(0, 35, 26, 0.7);
}

.goldman-regular {
  font-family: "Goldman", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.goldman-bold {
  font-family: "Goldman", sans-serif;
  font-weight: 700;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Goldman', sans-serif;
  background-color: var(--secondary-color);
  background-image: url('image/carbono-01.svg');
  background-size: 30px;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navegación */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-img {
  height: 40px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Main Content */
.downloads-main {
  margin-top: 80px;
  padding: 2rem;
}

.downloads-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 2rem 0;
}

.downloads-header h1 {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.downloads-header p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filters */
.categories-nav {
  margin-bottom: 3rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Goldman', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Downloads Grid */
.downloads-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.download-card {
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 191, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.download-card.animate-in,
.download-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 191, 0.5);
  box-shadow: 0 10px 30px rgba(0, 255, 191, 0.1);
}

.download-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.download-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.download-card:hover .download-preview img {
  transform: scale(1.1);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-card:hover .preview-overlay {
  opacity: 1;
}

.preview-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.preview-btn:hover {
  background: #00e6aa;
  transform: scale(1.05);
}

.download-info {
  padding: 1.5rem;
}

.download-info h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.download-category {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.download-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.download-action {
  width: 100%;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  padding: 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-action:hover {
  background: #00e6aa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 191, 0.3);
}

/* Newsletter Signup */
.newsletter-signup {
  background: linear-gradient(135deg, rgba(0, 255, 191, 0.1), rgba(0, 0, 0, 0.8));
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  border: 1px solid rgba(0, 255, 191, 0.2);
}

.newsletter-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(0, 255, 191, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-family: 'Goldman', sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #00e6aa;
  transform: translateY(-2px);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.contact-cta h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background: #00e6aa;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 191, 0.3);
}

/* Preview Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
}

.close:hover {
  color: var(--primary-color);
}

/* Footer */
.downloads-footer {
  background: var(--dark-bg);
  padding: 3rem 2rem 1rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 255, 191, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(0, 255, 191, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 191, 0.3);
}

.footer-links a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .downloads-main {
    padding: 1rem;
  }
  
  .downloads-header h1 {
    font-size: 2.5rem;
  }
  
  .category-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .downloads-header h1 {
    font-size: 2rem;
  }
  
  .download-info {
    padding: 1rem;
  }
  
  .newsletter-signup {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }
  
  .contact-cta {
    padding: 2rem 1rem;
  }
  
  .contact-cta h2 {
    font-size: 2rem;
  }
}
