/* Proyectos Page Styles */

/* Hero Section */
.proyectos-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 112px 96px;
  color: #faf7f5;
  overflow: hidden;
  box-sizing: border-box;
  max-height: 460px;
  background: linear-gradient(
      101deg,
      rgba(9, 56, 85, 0.6) 8.79%,
      rgba(106, 151, 185, 0.6) 95.41%
    ),
    url("../pages-assets/other/proyectos-bg.jpg") center center / cover
      no-repeat;
  position: relative;
}

.proyectos-hero-content {
  position: relative;
  z-index: 2;
}

.proyectos-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 0;
  font-style: normal;
  position: relative;
  flex-shrink: 0;
  width: 733px;
  max-width: 100%;
}

.proyectos-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 0;
  font-style: normal;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.proyectos-hero-title {
  font-family: "Adobe Caslon Pro", serif;
  font-weight: 600;
  font-size: 3rem;
  font-style: normal;
  font-weight: 600;
  line-height: 123.5%; /* 3.705rem */
  letter-spacing: 0.01563rem;
  margin: 0;
  color: #faf7f5;
  width: min-content;
  min-width: 100%;
  position: relative;
  flex-shrink: 0;
}

.container-proyectos {
  padding: 0 56px;
}

.proyectos-hero-description {
  font-family: "Adrianna", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.334;
  color: #faf7f5;
  width: min-content;
  min-width: 100%;
  position: relative;
  flex-shrink: 0;
}

.proyectos-hero-description p {
  margin: 0;
  margin-bottom: 0;
  color: #faf7f5;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 133.4%; /* 2.001rem */
}

.proyectos-hero-description p:last-child {
  margin-bottom: 0;
}

/* Filter Section */
.proyectos-filter-section {
  background: #f8fafc;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 1000;
}

.proyectos-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.proyectos-filter-info {
  flex: 1;
  min-width: 200px;
}

.proyectos-count {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.proyectos-filter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proyectos-filter-text {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.proyectos-filter-text svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Filter Dropdowns */
.proyectos-filter-dropdowns {
  display: flex;
  gap: 12px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.proyectos-filter-dropdowns.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-group {
  position: relative;
  z-index: 99999;
}

.filter-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 160px;
}

.filter-dropdown-btn:hover {
  border-color: #093855;
  color: #093855;
}

.filter-dropdown-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.filter-dropdown-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.filter-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-options {
  padding: 8px 0;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  color: #374151;
}

.filter-option:hover {
  background-color: #f1f5f9;
}

.filter-option input[type="radio"] {
  margin-right: 8px;
  accent-color: #093855;
}

.filter-option-text {
  flex: 1;
}

/* Projects Grid Section */
.proyectos-grid-section {
  padding: 64px 0;
  background: #ffffff;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* Project Card Enhancements for Proyectos Page */
.proyectos-page .project-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.proyectos-page .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(9, 56, 85, 0.2);
  z-index: 1;
}

.proyectos-page .project-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--project-image, #f1f5f9) center/cover no-repeat;
  transition: background-size 0.3s ease;
  flex-shrink: 0;
  padding: 0px;
}

.proyectos-page .project-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 83, 155, 0.3) 0%,
    rgba(9, 56, 85, 0.4) 100%
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}

.proyectos-page .project-card:hover .project-image-container {
  background-size: 105%;
  transform: scale(1.02);
}

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

.proyectos-page .project-card:hover .project-image {
  transform: scale(1.05);
}

.proyectos-page .project-year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #093855;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.proyectos-page .project-content {
  padding: 24px;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proyectos-page .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.proyectos-page .project-tag {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  background-color: #e0f2fe;
  color: #093855;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proyectos-page .project-card-title {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #093855;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proyectos-page .project-details {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 0px;
  flex: 1;
}

.proyectos-page .project-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: #64748b;
}

.proyectos-page .project-detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #093855;
}

.proyectos-page .project-detail-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.proyectos-page .project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  color: #093855;
  border: 2px solid rgba(9, 56, 85, 0.2);
  border-radius: 999px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: auto;
  flex-shrink: 0;
}

.proyectos-page .project-link:hover {
  border-color: #093855;
  box-shadow: 0 2px 8px rgba(9, 56, 85, 0.15);
  color: #093855;
}

/* No Projects Found */
.no-projects-found {
  text-align: center;
  padding: 80px 20px;
}

.no-projects-content h2 {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.no-projects-content p {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.125rem;
  color: #64748b;
  margin: 0 0 32px 0;
}

/* Load More Button */
.proyectos-load-more {
  text-align: center;
  margin-top: 48px;
}

.proyectos-load-more .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #093855;
  color: #ffffff;
  border: 2px solid #093855;
  border-radius: 8px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.proyectos-load-more .btn:hover {
  background: #072a42;
  border-color: #072a42;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(9, 56, 85, 0.25);
}

/* Responsive Design */
/* Tablet responsive (max-width: 1024px) */
@media (max-width: 1024px) {
  /* Hero content - remove padding */
  .proyectos-hero-content {
    padding: 0px;
  }

  /* Filter section container - mobile padding */
  .proyectos-filter-section > div:nth-child(1) {
    padding: 0 16px;
  }

  /* Grid section container - mobile padding */
  .proyectos-grid-section > div:nth-child(1) {
    padding: 1rem;
  }

  /* Grid section - reduced padding */
  .proyectos-grid-section {
    padding: 1rem 0px;
  }

  /* CTA text elements - smaller font sizes */
  .cta-detail {
    font-size: 1rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  /* Hero description paragraphs - smaller font */
  .proyectos-hero-description > p:nth-child(1),
  .proyectos-hero-description > p:nth-child(3) {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .proyectos-hero-title {
    font-size: 2.5rem;
  }

  .proyectos-hero-description {
    font-size: 1rem;
  }

  .proyectos-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .proyectos-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .proyectos-filter-dropdowns {
    flex-direction: column;
  }

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

  .proyectos-page .project-card {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .proyectos-hero-title {
    font-size: 2rem;
  }

  .proyectos-hero-content {
    padding: 60px 16px;
  }

  .proyectos-filter-section {
    padding: 24px 0;
  }

  .proyectos-grid-section {
    padding: 48px 0;
  }

  .proyectos-page .project-content {
    padding: 20px;
  }

  .proyectos-page .project-card-title {
    font-size: 1.125rem;
  }
}

/* Animation for filter dropdowns */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-dropdown-menu.active {
  animation: slideDown 0.2s ease-out;
}

/* Custom scrollbar for dropdown menus */
.filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--color-primary-300, #6a97b9);
  padding: 64px 167px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
}

.cta-container {
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  width: 100%;
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display, "Inter", sans-serif);
  font-size: 3rem; /* 48px */
  font-weight: 600;
  line-height: 1.235;
  letter-spacing: 0.25px;
  color: var(--color-primary-600, #093855);
  margin: 0;
  max-width: 980px;
  text-align: center;
}

.cta-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.cta-subtitle {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  line-height: 1.334;
  color: var(--color-primary-600, #093855);
  margin: 0;
  width: 100%;
}

.cta-detail {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.15px;
  color: var(--color-primary-600, #093855);
  margin: 0;
  width: 100%;
}

.cta-buttons {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 24px;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.15px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--color-neutral-50, #faf7f5);
  border: 1px solid var(--color-neutral-50, #faf7f5);
  min-width: 218px;
}

.cta-button-secondary:hover {
  background-color: var(--color-neutral-50, #faf7f5);
  color: var(--color-primary-600, #093855);
  transform: translateY(-2px);
}

.cta-button-primary {
  background-color: var(--color-accent-400, #eb6929);
  color: var(--color-neutral-50, #faf7f5);
  border: 1px solid var(--color-accent-400, #eb6929);
  min-width: 174px;
}

.cta-button-primary:hover {
  background-color: #d55a1f;
  border-color: #d55a1f;
  transform: translateY(-2px);
}

/* ===== HERO RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .proyectos-hero {
    padding: 80px 60px;
  }

  .proyectos-hero-content {
    width: 600px;
  }

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

  .proyectos-hero-description {
    font-size: 22px;
  }
}

@media (max-width: 992px) {
  .proyectos-hero {
    padding: 60px 40px;
    min-height: 500px;
  }

  .proyectos-hero-content {
    width: 100%;
    max-width: 500px;
  }

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

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

@media (max-width: 768px) {
  .proyectos-hero {
    padding: 40px 20px;
    min-height: 400px;
    height: auto;
  }

  .proyectos-hero-content {
    width: 100%;
    max-width: 100%;
  }

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

  .proyectos-hero-description {
    font-size: 18px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .proyectos-hero {
    padding: 32px 16px;
    min-height: 350px;
  }

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

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

/* ===== CTA RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .cta-section {
    padding: 64px 80px;
  }
}

@media (max-width: 992px) {
  .cta-section {
    padding: 48px 40px;
  }

  .cta-title {
    font-size: 2.5rem; /* 40px */
    max-width: 100%;
  }

  .cta-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 2rem; /* 32px */
  }

  .cta-subtitle {
    font-size: 1.25rem; /* 20px */
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 32px 16px;
  }

  .cta-title {
    font-size: 1.75rem; /* 28px */
  }

  .cta-subtitle {
    font-size: 1.125rem; /* 18px */
  }

  .cta-detail {
    font-size: 0.875rem; /* 14px */
  }
}

/* ===== LOAD MORE BUTTON STYLES ===== */
.proyectos-load-more {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

.proyectos-load-more .btn {
  min-width: 200px;
  transition: all 0.3s ease;
}

.proyectos-load-more .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6a97b9;
  color: white;
}

.proyectos-load-more .btn:disabled:hover {
  background-color: #6a97b9;
  transform: none;
}

/* Loading animation */
.proyectos-load-more .btn:disabled::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Smooth transition for new projects */
.project-card {
  animation: fadeInUp 0.6s ease-out;
}

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