/* Proyectos y Colaboraciones Styles */
:root {
  --primary-color: #8b0000;
  --secondary-color: #dc143c;
  --accent-color: #ff6b6b;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=600&width=1200") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filters Section */
.filters-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Projects Section */
.projects-section {
  padding: 80px 0;
  background: var(--background-light);
}

.projects-section.completed-projects {
  background: var(--white);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Project Cards */
.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-card.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-status.active {
  background: #28a745;
  color: var(--white);
}

.project-status.completed {
  background: var(--primary-color);
  color: var(--white);
}

.project-content {
  padding: 30px;
}

.project-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.project-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.project-location,
.project-duration {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Progress Bar */
.project-progress {
  margin-bottom: 25px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Impact Stats */
.project-impact {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.impact-stat {
  text-align: center;
  flex: 1;
}

.impact-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.impact-label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Collaborators Section */
.collaborators-section {
  padding: 80px 0;
  background: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.collaborator-card {
  background: var(--background-light);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.collaborator-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.collaborator-logo {
  width: 120px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 8px;
  padding: 15px;
}

.collaborator-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.collaborator-name {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.collaborator-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-description {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cta-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.cta-option:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.cta-option h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.cta-option p {
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.cta-option .btn-primary {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  width: 100%;
}

.cta-option .btn-primary:hover {
  background: var(--background-light);
  transform: translateY(-2px);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    flex: none;
    width: 100%;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cta-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collaborators-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .project-meta {
    flex-direction: column;
    gap: 10px;
  }

  .impact-stat {
    flex: none;
  }

  .project-impact {
    justify-content: space-around;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .projects-section {
    padding: 60px 0;
  }

  .collaborators-section {
    padding: 60px 0;
  }

  .cta-section {
    padding: 60px 0;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
