/*
 * Proyectos Pages - Light Theme Implementation
 * For archive-proyecto.php and single-proyecto.php
 */

/* ===== PROJECTS ARCHIVE HERO ===== */
.container-proyecto {

    margin: 0 auto;
    padding: 0 96px;
    flex-direction: column;
}

.hero-proyectos-archive {
  background: linear-gradient(135deg, #1e4a8c 0%, #2b69c7 50%, #22d3ee 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  animation: fadeIn 0.8s ease-out;
}

.hero-proyectos-archive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8F2FF' fill-opacity='0.4'%3E%3Cpath d='M30 30c0-11 9-20 20-20v20H30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.5;
}

.hero-proyectos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-proyectos-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-proyectos-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-proyectos-subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 20px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-proyectos-description {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-proyectos-stats {
  display: none; /* Remove stats from hero as per Figma */
}

.hero-proyectos-stats .stat-item {
  text-align: center;
}

.hero-proyectos-stats .stat-number {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #2b69c7;
  display: block;
  line-height: 1;
}

.hero-proyectos-stats .stat-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== FILTROS SECTION ===== */
.filtros-proyectos-section {
  background: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #e5e7eb;
}

.filtros-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.filtros-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out;
}

.filtros-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.filtros-subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: -0.01em;
}

.filtros-grid {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
}

.filtro-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 auto;
}

.filtro-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.filtro-select {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 15px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 240px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L7 7L13 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.filtro-select:focus {
  outline: none;
  border-color: #2b69c7;
  box-shadow: 0 0 0 3px rgba(43, 105, 199, 0.1);
}

.filtro-select:hover {
  border-color: #9ca3af;
}

.filtro-reset {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 32px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  align-self: flex-end;
  white-space: nowrap;
}

.filtro-reset:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

/* ===== PROJECTS GRID SECTION ===== */
.proyectos-grid-section {
  background: #f8f9fa;
  padding: 48px 0 80px;
}

.proyectos-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  animation: fadeIn 0.6s ease-out;
}

/* Stagger animation for cards */
.project-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.project-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.project-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.project-card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}
.project-card:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}
.project-card:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* ===== PROJECT CARD ===== */
.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  will-change: transform, box-shadow;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(43, 105, 199, 0.15);
  border-color: #2b69c7;
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.08) rotate(1deg);
}

.project-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-year-badge {
  background: #1a1a1a;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.project-cert-badge {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cert-leed {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.9),
    rgba(16, 185, 129, 0.9)
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.cert-breeam {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.9),
    rgba(59, 130, 246, 0.9)
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.cert-well {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.9),
    rgba(167, 139, 250, 0.9)
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.cert-verde {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.9),
    rgba(251, 191, 36, 0.9)
  );
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ===== PROJECT CONTENT ===== */
.project-content {
  padding: 20px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-type {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-location {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #2b69c7;
}

.project-title {
  margin-bottom: 12px;
}

.project-title a {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: #2b69c7;
}

.project-excerpt {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 16px;
}

.project-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  position: relative;
}

.project-metrics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2b69c7, #22d3ee);
  border-radius: 2px;
}

.project-metric {
  text-align: center;
}

.metric-value {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #2b69c7, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  transition: all 0.3s ease;
}

.metric-label {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-link {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(135deg, #2b69c7 0%, #22d3ee 100%);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-link:hover {
  background: linear-gradient(135deg, #1e4a8c 0%, #2b69c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 105, 199, 0.3);
}

.project-link svg {
  transition: transform 0.2s ease;
}

.project-link:hover svg {
  transform: translateX(2px);
}

/* ===== NO PROJECTS FOUND ===== */
.no-projects-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease-out;
}

.no-projects-icon {
  margin-bottom: 24px;
}

.no-projects-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.no-projects-description {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PAGINATION ===== */
.projects-pagination {
  margin-top: 60px;
  text-align: center;
}

.projects-pagination-nav {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.projects-pagination-nav .page-numbers {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.projects-pagination-nav .page-numbers:hover,
.projects-pagination-nav .page-numbers.current {
  background: #2b69c7;
  color: #ffffff;
  border-color: #2b69c7;
}

/* ===== SINGLE PROJECT STYLES ===== */
.hero-proyecto-single {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 120px 0 80px;
  position: relative;
}

.hero-proyecto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Project Breadcrumb */
.project-breadcrumb {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  margin-bottom: 24px;
}

.project-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.project-breadcrumb a:hover {
  color: #2b69c7;
}

.breadcrumb-separator {
  color: #d1d5db;
  margin: 0 8px;
}

.breadcrumb-current {
  color: #1a1a1a;
}

/* Hero Project Content */
.hero-proyecto-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.project-type-badge {
  background: #e8f2ff;
  color: #2b69c7;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-year {
  background: #f3f4f6;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}

.project-certification {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-proyecto-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-proyecto-location {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6b7280;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-proyecto-excerpt {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 32px;
}

.hero-proyecto-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hero-proyecto-metrics .metric-item {
  text-align: left;
}

.hero-proyecto-metrics .metric-value {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #2b69c7;
  display: block;
  line-height: 1;
}

.hero-proyecto-metrics .metric-label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  display: block;
  margin-top: 6px;
}

/* Hero Project Image */
.hero-proyecto-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.view-gallery-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-gallery-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

/* ===== RELATED PROJECTS ===== */
.related-projects-section {
  background: #f8fafc;
  padding: 80px 0;
}

.related-projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.related-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 48px;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #2b69c7;
}

.related-project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.05);
}

.related-project-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.related-project-content {
  padding: 20px;
}

.related-project-title a {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.related-project-title a:hover {
  color: #2b69c7;
}

.related-project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.related-cert {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-savings {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #10b981;
}

.related-project-link {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2b69c7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-project-link:hover {
  color: #1e4a8c;
}

/* ===== CTA PROYECTOS SECTION ===== */
.cta-proyectos-section {
  background: linear-gradient(135deg, #2b69c7 0%, #1e4a8c 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-proyectos-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zM30 10c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.3;
}

.cta-proyectos-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.cta-proyectos-content {
  text-align: center;
}

.cta-proyectos-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-proyectos-subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-proyectos-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-proyectos-buttons .btn {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.btn-primary {
  background: #ffffff;
  color: #2b69c7;
  border: 2px solid #ffffff;
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #22d3ee, #2b69c7);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-primary:hover::before {
  opacity: 0.2;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1200px) {
  .hero-proyectos-container,
  .filtros-container,
  .proyectos-grid-container,
  .related-projects-container,
  .cta-proyectos-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-proyecto-container {
    gap: 100px;
  }

  .proyectos-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .hero-proyectos-title {
    font-size: 42px;
  }

  .hero-proyecto-title {
    font-size: 36px;
  }

  .related-title,
  .cta-proyectos-title {
    font-size: 28px;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .hero-proyectos-archive,
  .hero-proyecto-single {
    padding: 80px 0 60px;
  }

  .filtros-proyectos-section,
  .proyectos-grid-section,
  .related-projects-section,
  .cta-proyectos-section {
    padding: 50px 0;
  }

  .hero-proyectos-title {
    font-size: 36px;
  }

  .hero-proyecto-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-proyecto-image {
    order: -1;
  }

  .hero-image {
    height: 300px;
  }

  .hero-proyecto-title {
    font-size: 32px;
  }

  .filtros-grid {
    flex-wrap: wrap;
    gap: 20px;
  }

  .filtro-group {
    flex: 1 1 45%;
  }

  .filtro-select {
    min-width: 100%;
  }

  .hero-proyectos-stats {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
  }

  .hero-proyecto-metrics {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .related-projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proyectos-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Text rendering optimization */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile */
@media (max-width: 767px) {
  .hero-proyectos-archive,
  .hero-proyecto-single {
    padding: 60px 0 40px;
  }

  .filtros-proyectos-section,
  .proyectos-grid-section,
  .related-projects-section,
  .cta-proyectos-section {
    padding: 40px 0;
  }

  .hero-proyectos-container,
  .filtros-container,
  .proyectos-grid-container,
  .hero-proyecto-container,
  .related-projects-container,
  .cta-proyectos-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-proyectos-title {
    font-size: 32px;
  }

  .hero-proyecto-title {
    font-size: 28px;
  }

  .hero-proyectos-subtitle {
    font-size: 20px;
  }

  .hero-proyectos-description,
  .hero-proyecto-excerpt {
    font-size: 16px;
  }

  .filtros-grid {
    flex-direction: column;
    gap: 16px;
  }

  .filtro-group {
    flex: 1 1 100%;
  }

  .filtro-reset {
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
  }

  .related-title,
  .cta-proyectos-title {
    font-size: 24px;
  }

  .cta-proyectos-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-proyectos-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .project-badges {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .hero-proyecto-meta {
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-proyectos-title {
    font-size: 28px;
  }

  .hero-proyecto-title {
    font-size: 24px;
  }

  .related-title,
  .cta-proyectos-title {
    font-size: 22px;
  }

  .project-content {
    padding: 20px;
  }

  .related-project-content {
    padding: 16px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .related-project-card,
  .project-image,
  .related-project-image img,
  .view-gallery-btn {
    transition: none;
  }

  .project-card:hover,
  .related-project-card:hover,
  .view-gallery-btn:hover {
    transform: none;
  }
}

/* Focus states */
.project-card:focus,
.related-project-card:focus,
.filtro-select:focus,
.view-gallery-btn:focus,
.btn:focus {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .project-card,
  .related-project-card {
    border: 2px solid #1a1a1a;
  }

  .project-title a,
  .related-project-title a {
    color: #000000;
  }

  .project-excerpt {
    color: #333333;
  }
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.project-card,
.related-project-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.project-image,
.related-project-image img {
  will-change: transform;
}

/* ===== ENHANCED FILTERS ===== */
.filtro-select {
  position: relative;
  background-image: linear-gradient(to bottom, #ffffff, #fafbfc);
}

.filtro-select:hover {
  background-image: linear-gradient(to bottom, #fafbfc, #f3f4f6);
}

.filtro-reset {
  position: relative;
  overflow: hidden;
}

.filtro-reset::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(43, 105, 199, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.filtro-reset:hover::before {
  width: 300px;
  height: 300px;
}
