/* ============================================
   PORTAFOLIO - Diseño Premium Alta Gama
   Colores corporativos: Naranja + Azul
   ============================================ */

/* --- VARIABLES LOCALES --- */
.portafolio-page {
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e55a2a;
  --accent-blue: #2a6f8f;
  --accent-blue-dark: #1e5a75;
  --cream: #faf8f5;
  --dark: #0d0d0d;
  --dark-secondary: #1a1a1a;
  --text-body: #5a5a5a;
  --text-light: #888;
}

/* ============================================
   HERO FULLSCREEN
   ============================================ */
.portafolio-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroBreath 15s ease-in-out infinite alternate;
  filter: brightness(0.3) saturate(0.5);
}

@keyframes heroBreath {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.13); }
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.75) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 60%);
  z-index: 2;
}

/* Líneas arquitectónicas */
.hero-arch-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.arch-line {
  position: absolute;
  opacity: 0.12;
}

.arch-line-1 {
  top: 20%;
  right: 10%;
  width: 1px;
  height: 40vh;
  background: var(--accent-orange);
  animation: archPulse 6s ease-in-out infinite;
}

.arch-line-2 {
  bottom: 25%;
  left: 8%;
  width: 35vw;
  height: 1px;
  background: var(--accent-blue);
  animation: archPulse 8s ease-in-out infinite reverse;
}

@keyframes archPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.25; }
}

/* Contenido del hero */
.hero-text-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  animation: contentReveal 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes contentReveal {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.title-block {
  display: block;
}

.title-block.accent {
    /* font-style: italic; */
  color: var(--accent-orange);
  font-weight: 500;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.hero-divider span {
  width: 50px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.hero-divider i {
  font-size: 0.3rem;
  color: var(--accent-orange);
}

.hero-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto;
}

.hero-description em {
    /* font-style: italic; */
  color: rgba(255,255,255,0.85);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
}

.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 45px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.scroll-fill {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-orange);
  animation: scrollAnim 2.5s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================
   FILTROS
   ============================================ */
.filtros-section {
  padding: 2rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.filtros-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.filtros-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Contenedor del scroll: solo aquí van los degradados de borde (se activan
   por JS con .can-scroll-left/.can-scroll-right según haya o no overflow) */
.filtros-scroll {
  position: relative;
  flex: 1 1 auto;
  min-width: 0; /* imprescindible para que un hijo flex pueda encogerse y generar overflow */
}

.filtros-scroll::before,
.filtros-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 36px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.filtros-scroll::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.97), transparent);
}

.filtros-scroll::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.97), transparent);
}

.filtros-scroll.can-scroll-left::before,
.filtros-scroll.can-scroll-right::after {
  opacity: 1;
}

/* Una sola línea con scroll horizontal en vez de envolver en 2+ líneas:
   así el ancho de la barra de filtros no depende de cuántas/cuán largas
   sean las categorías de Airtable. */
.filtros-wrapper {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; /* espacio para que la scrollbar no pise las pills */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.filtros-wrapper::-webkit-scrollbar {
  height: 4px;
}

.filtros-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.filtros-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

.filtro-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.filtro-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.filtro-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* ============================================
   PROYECTOS FULLSCREEN
   ============================================ */
.proyectos-main {
  background: var(--cream);
}

.loading-state {
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loading-pulse {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0,0,0,0.08);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state span {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- SECCIÓN DE PROYECTO FULLSCREEN --- */
.proyecto-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Desplazamiento por secciones completas, sutil (no forzado):
   si el usuario suelta el scroll cerca de un proyecto, se alinea solo.
   Solo en desktop — en mobile el scroll táctil se deja nativo. */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y proximity;
  }
}

.proyecto-fullscreen:nth-child(even) .proyecto-content-wrapper {
  flex-direction: row-reverse;
}

.proyecto-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.proyecto-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proyecto-fullscreen.in-view .proyecto-bg-img img {
  transform: scale(1);
}

.proyecto-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 2;
}

.proyecto-fullscreen:nth-child(even) .proyecto-bg-overlay {
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

.proyecto-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Número gigante — decorativo, se achica para dejarle más ancho al título */
.proyecto-numero {
  font-family: 'Outfit', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  transition: color 0.8s ease;
}

.proyecto-fullscreen.in-view .proyecto-numero {
  color: rgba(255, 107, 53, 0.6);
}

/* Información del proyecto */
.proyecto-info {
  flex: 1;
  max-width: 660px;
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proyecto-fullscreen.in-view .proyecto-info {
  opacity: 1;
  transform: translateY(0);
}

.proyecto-categoria {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
  font-weight: 500;
}

.proyecto-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.proyecto-excerpt {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  font-weight: 300;
}

.proyecto-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

.proyecto-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proyecto-meta i {
  color: var(--accent-orange);
  font-size: 0.75rem;
}

.proyecto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 2rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.proyecto-btn .btn-arrow {
  display: inline-block;
  margin-left: 0.8rem;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proyecto-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-orange);
  transition: left 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
}

.proyecto-btn:hover {
  border-color: var(--accent-orange);
}

.proyecto-btn:hover::before {
  left: 0;
}

.proyecto-btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* Acento visual */
.proyecto-acento {
  flex-shrink: 0;
}

.acento-forma {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.1);
  animation: morphAnim 10s ease-in-out infinite;
}

@keyframes morphAnim {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%; }
  75% { border-radius: 70% 30% 60% 40% / 30% 60% 40% 70%; }
}

/* ============================================
   MODAL DE PROYECTO
   ============================================ */
.proyecto-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.proyecto-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 88vh;
  background: #fff;
  overflow-y: auto;
  z-index: 1;
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.proyecto-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: background 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--accent-orange);
}

.modal-close-btn span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: #fff;
}

.modal-close-btn span:first-child {
  transform: rotate(45deg);
}

.modal-close-btn span:last-child {
  transform: rotate(-45deg);
}

.modal-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #111;
}

/* Copia desenfocada de la propia imagen de fondo, para que fotos verticales o
   cuadradas no dejen franjas vacías: la imagen real (abajo) se ve completa con
   "contain" y este fondo rellena el resto del marco sin recortarla ni deformarla. */
.modal-image-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.55) saturate(1.15);
  transform: scale(1.15);
}

.modal-image-wrapper img.modal-image-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  z-index: 2;
  pointer-events: none;
}

.modal-thumbnails {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 3rem 0;
  overflow-x: auto;
  background: #fff;
}

.modal-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  background: #f2f2f2;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.modal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb:hover {
  opacity: 0.85;
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--accent-orange);
}

.modal-thumb:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.modal-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  pointer-events: none;
  z-index: 5;
}

.modal-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
}

.modal-nav-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.modal-body {
  padding: 3rem;
}

.modal-categoria {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent-orange);
}

.modal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.modal-meta {
  display: flex;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  color: var(--text-body);
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-meta i {
  color: var(--accent-blue);
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h4 {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.modal-section p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.95rem;
  font-weight: 300;
}

/* ============================================
   CTA FINAL
   ============================================ */
.portafolio-cta {
  position: relative;
  padding: 8rem 0;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,107,53,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(42,111,143,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-tag {
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: block;
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.5rem;
}

.cta-text {
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--accent-orange);
  color: #fff;
  padding: 1.1rem 2.5rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cta-btn i {
  margin-left: 0.8rem;
  transition: transform 0.4s ease;
}

.cta-btn:hover {
  background: var(--accent-orange-dark);
  padding-right: 3rem;
}

.cta-btn:hover i {
  transform: translateX(6px);
}

/* ============================================
   FOOTER PREMIUM (Mismo diseño que contacto)
   ============================================ */
.footer-premium {
  background: #000;
  position: relative;
  overflow: hidden;
}

.footer-border-top {
  display: flex;
  height: 3px;
}

.border-accent { flex: 1; }
.border-orange { background: var(--accent-orange); }
.border-blue { background: var(--accent-blue); }

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 3rem 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  display: block;
  line-height: 1;
}

.footer-logo-sub {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 500;
  margin-top: 0.5rem;
  display: block;
}

.footer-description {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  margin: 1.5rem 0;
  font-weight: 300;
}

.footer-certifications {
  display: flex;
  gap: 1.5rem;
}

.cert-item {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
}

.cert-item i {
  color: var(--accent-blue);
  margin-right: 0.4rem;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.4s ease;
}

.footer-col:hover .footer-heading::after {
  width: 35px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 10px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  font-weight: 300;
}

.footer-contact-list li i {
  color: var(--accent-orange);
  margin-top: 3px;
}

.footer-contact-list li a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-list li a:hover {
  color: var(--accent-orange);
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.4s ease;
  font-size: 0.9rem;
}

.social-icon-link:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  transform: translateY(-4px);
}

.footer-legal-bar {
  padding: 2.5rem 0;
  text-align: center;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--accent-orange);
}

.legal-divider {
  color: rgba(255,255,255,0.08);
}

.footer-copyright {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-copyright sup {
  font-size: 0.55rem;
}

.footer-madeby {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 2px;
    /* font-style: italic; */
  font-family: 'Outfit', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  /* A partir de este ancho aparece el .mobile-header fijo (css/styles.css,
     mismo breakpoint) — la barra de filtros ya no puede pegarse a top:0
     (quedaría tapada debajo de él) sino justo debajo de su altura real (~77px). */
  .filtros-section {
    top: 77px;
  }

  /* El .mobile-header fijo (~77px) + la barra de filtros pegada justo debajo
     (~143px más) suman ~220px cubiertos arriba del viewport en todo momento.
     Sin esto, "Ver proyecto"/cambiar de filtro (applyFilter -> scrollIntoView)
     alineaba el proyecto justo con el borde superior real (y:0), que en mobile
     queda tapado detrás del header + la barra de filtros: el número y la
     categoría del proyecto aparecían escondidos detrás de ambos. scroll-margin-top
     hace que cualquier scrollIntoView dispare respetando ese espacio. */
  .proyecto-fullscreen {
    scroll-margin-top: 230px;
  }

  .proyecto-content-wrapper {
    flex-direction: column !important;
    text-align: center;
    padding: 0 5%;
    gap: 2rem;
  }
  
  .proyecto-numero {
    font-size: 6rem;
    order: -1;
  }
  
  .proyecto-info {
    max-width: 100%;
  }
  
  .proyecto-info h2 {
    font-size: 2.5rem;
  }
  
  .proyecto-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .proyecto-acento {
    display: none;
  }
  
  .proyecto-bg-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%) !important;
  }
  
  .proyecto-fullscreen {
    min-height: 600px;
    height: auto;
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .filtros-container {
    padding: 0 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .filtros-scroll {
    width: 100%;
  }
  
  .proyecto-numero {
    font-size: 4rem;
  }
  
  .proyecto-info h2 {
    font-size: 2rem;
  }
  
  .modal-image-wrapper {
    height: 250px;
  }

  .modal-nav {
    height: 250px;
  }

  .modal-nav-btn {
    width: 38px;
    height: 38px;
  }

  .modal-thumbnails {
    padding: 0.85rem 2rem 0;
  }

  .modal-thumb {
    width: 60px;
    height: 46px;
  }

  .modal-body {
    padding: 2rem;
  }
  
  .modal-body h2 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .legal-divider {
    display: none;
  }
  
  .cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-label {
    font-size: 0.6rem;
    letter-spacing: 4px;
  }
  
  .proyecto-fullscreen {
    min-height: 500px;
    padding: 4rem 0;
  }
  
  .proyecto-info h2 {
    font-size: 1.6rem;
  }
  
  .proyecto-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.7rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .footer-container {
    padding: 3rem 1.5rem 0;
  }
}