/* Variables */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --primary: #ea9c19;
  --muted: hsl(0, 0%, 0%);
  --border: #000000;
  --card-bg: #ffffff;
  --secondary-bg: rgba(234, 156, 25, 0.1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navegación */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: flex; }
}

/* Hero - Home */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

.highlight { color: var(--primary); }

.cursor {
  color: var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(234, 156, 25, 0.3);
  background: #d88f17;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
 border: 2px solid var(--primary);
color: var(--primary);

  transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--primary);
  transition: background 0.3s, color 0.3s;
}

.btn-outline-small:hover {
  background: var(--primary);
  color: white;
}

/* Proyectos - Home */
.projects {
  padding: 4rem 0;
  overflow: hidden;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.projects .carousel {
  display: flex;
  gap: 1.5rem;
  animation: scroll-infinite 20s linear infinite;
  width: fit-content;
}

.projects .carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.projects .carousel .project-card {
  flex-shrink: 0;
  width: 350px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects .carousel .project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.projects .carousel .project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects .carousel .project-card:hover img {
  transform: scale(1.1);
}

.projects .carousel .project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projects .carousel .project-card:hover .project-overlay {
  opacity: 1;
}

.projects .carousel .project-name {
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PORTFOLIO WORK PAGE ===== */

.portfolio-hero {
  padding: 8rem 0 4rem;
  background: white;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.portfolio-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.portfolio-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
}

/* Carousel Section */
.carousel-section {
  padding: 4rem 0;
  background: white;
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1rem;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.carousel-image {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}

.carousel-slide:hover .carousel-image img {
  transform: scale(1.03);
}

.carousel-info {
  padding: 1rem;
}

.carousel-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.carousel-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.carousel-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* More Projects Section */
.more-projects {
  padding: 6rem 0;
  background: white;
}

.section-title-center {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.project-card img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.8), rgba(26,26,26,0.2), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.project-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

/* Portfolio CTA */
.portfolio-cta {
  padding: 6rem 0;
  background: white;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Portfolio Footer */
.portfolio-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-content p {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== PORTFOLIO ABOUT PAGE ===== */

.about-hero {
  padding: 8rem 0 4rem;
  background: var(--bg);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }
}

.about-hero-content .hero-label {
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* About Image */
.about-hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}

.image-decoration-1 {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 128px;
  height: 128px;
  background: var(--primary);
  border-radius: 16px;
  z-index: -1;
  animation: pulse-slow 3s infinite;
}

.image-decoration-2 {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 96px;
  height: 96px;
  background: var(--secondary-bg);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-slow 3s infinite;
  animation-delay: 1.5s;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Skills Section */
.skills-section {
  padding: 6rem 0;
  background: var(--secondary-bg);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skill-card {
  flex: 0 1 280px;
  max-width: 320px;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.skill-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.skill-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Experience Section */
.experience-section {
  padding: 6rem 0;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-content {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.timeline-period {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.timeline-role {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.timeline-description {
  color: var(--muted);
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--bg);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Quick Links */
.quick-links {
  padding: 6rem 0;
  background: var(--bg);
}

.quick-links-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s;
}

.quick-link:hover {
  color: var(--primary);
}

.link-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 600px) {
  .link-divider {
    display: none;
  }
}

/* ============================
   PROJECT DETAIL PAGE 
   ============================ */

.project-page {
  background: white;
}

/* Floating Navigation */
.nav-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-floating.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-floating .logo,
.nav-floating .nav-links a {
  color: white;
  transition: color 0.3s;
}

.nav-floating.nav-scrolled .logo,
.nav-floating.nav-scrolled .nav-links a {
  color: var(--text);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-scrolled .back-btn {
  background: var(--secondary);
  color: var(--text);
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(-3px);
}

.nav-scrolled .back-btn:hover {
  background: var(--border);
}

/* Hero Full Screen */
.project-hero-full {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-hero-full img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.hero-title-large {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}



@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Info Bar */
.project-info-bar {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.info-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.tag-dot {
  font-size: 0.5rem;
  color: var(--primary);
}

/* Description Section */
.project-description-section {
  padding: 5rem 0;
}

.project-intro {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
}

/* Visual Gallery */
.project-visual-gallery {
  padding: 0;
}

.gallery-full-item {
  width: 100%;
  overflow: hidden;
}

.gallery-full-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease;
}

.gallery-full-item:hover img {
  transform: scale(1.02);
}

.gallery-contained {
  padding: 3rem;
  background: var(--secondary);
}

.gallery-contained img {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
}

/* Two Column Gallery */
.gallery-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 3rem;
  background: var(--secondary);
}

.gallery-col {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.gallery-col img {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  transition: transform 0.8s ease;

}

.gallery-col:hover img {
  transform: scale(1.03);
}

/* Details Section */
.project-details-section {
  padding: 5rem 0;
  background: var(--secondary);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  
}

.detail-col h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.detail-col p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.0625rem;
}

/* Meta Section */
.project-meta-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.meta-value {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

/* Next Project */
.next-project-section {
  padding: 6rem 0;
  background: var(--text);
  color: white;
}

.next-project-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 1rem;
  transition: opacity 0.3s;
}

.next-project-link:hover {
  opacity: 0.8;
}

.next-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.next-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  text-align: center;
}

.next-arrow {
  margin-top: 1rem;
  opacity: 0.6;
  transition: transform 0.3s, opacity 0.3s;
}

.next-project-link:hover .next-arrow {
  transform: translateX(10px);
  opacity: 1;
}

/* Fade up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-col img {
    height: 300px;
  }
  
  .project-hero-full {
    height: 50vh;
    min-height: 350px;
  }
}


/* Movil */
@media (max-width: 768px) 


{

  .project-page .nav-links.active {
  background: #1a1a1a;
}

.project-page .nav-links.active a {
  color: #ffffff;
}

  .project-hero-full {
  height: 40vh;
  min-height: 300px;
}

  .hero-title-large {
    font-size: clamp(2rem, 12vw, 4rem);
  }
  
  .project-intro {
    font-size: 1.125rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .meta-grid {
    flex-direction: column;
    gap: 2rem;
  }
  
  .gallery-contained {
    padding: 1.5rem;
  }
  
  .gallery-two-col {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  .gallery-col img {
  height: 220px;  
}

  
  .info-tags {
    gap: 1rem;
  }
  
  .back-btn {
    width: 36px;
    height: 36px;
  }
}

/* Carousel link styles */
.carousel-link {
  display: block;
  text-decoration: none;
}

.carousel-link .carousel-image {
  cursor: pointer;
}

/* Project card as link */
a.project-card {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   WORK PAGE - MASONRY GRID 3 COLUMNS
   ============================================ */

.work-page {
  background: var(--bg);
}

.work-masonry {
  padding: 100px 0 80px;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  gap: 8px;
}

.masonry-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 16px;  
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}


.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Height variations - grid-row-end spans */
.masonry-tall {
  grid-row-end: span 45;
}

.masonry-medium {
  grid-row-end: span 35;
}

.masonry-short {
  grid-row-end: span 28;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.masonry-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.masonry-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: white;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.masonry-item:hover .masonry-category,
.masonry-item:hover .masonry-title {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - single column */
@media (max-width: 600px) {
  .work-masonry {
    padding: 80px 0 60px;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }
  
  .masonry-tall,
  .masonry-medium,
  .masonry-short {
    grid-row-end: auto;
  }
  
  .masonry-item img {
    height: auto;
    aspect-ratio: 4/3;
  }
  
  .masonry-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  }
  
  .masonry-category,
  .masonry-title {
    opacity: 1;
    transform: translateY(0);
  }
}
