/* ============================================
   SELLO N — Arquitectura & Interiorismo
   Static HTML Version
   ============================================ */

/* --- Font Setup --- */
@font-face {
  font-family: 'function_pro';
  src: url('../fonts/functionpro-medium-webfont.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'function_pro';
  src: url('../fonts/functionpro-book-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'function_pro';
  src: url('../fonts/functionpro-light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'function_pro';
  src: url('../fonts/functionpro-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'function_pro';
  src: url('../fonts/functionpro-demi-webfont.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Six Caps';
  src: url('../fonts/six-caps-v23.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'function_pro', 'DM Sans', 'Inter', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.56;
  color: #161619;
  background: #fff;
}

body.is-scroll-locked {
  overflow: hidden;
}

body.project-dark {
  color: #fff;
  background-color: #161619;
}

:where(
  h1,
  h2,
  h3,
  h4,
  .hero-content h1,
  .about-intro h2,
  .section-title,
  .project-card .project-label,
  .service-item h3,
  .valor-section h3,
  .valor-section h4,
  .contact-footer h3,
  .page-header h1,
  .mvv-item h4,
  .estudio-intro h1,
  .estudio-practices h2,
  .estudio-highlight h4,
  .estudio-practices h4,
  .proyecto-row .proyecto-name,
  .contact-info-block h3,
  .bloque-n-label,
  .bloque-n-text h2,
  .bloque-n-tagline,
  .privacy-content h1,
  .privacy-content h2,
  .privacy-content h3,
  .proy-cat,
  .proy-name,
  .talent-label,
  .talent-heading
) {
  font-family: 'Six Caps', 'function_pro', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.is-hidden {
  display: none !important;
}

img { max-width: 100%; height: auto; display: block; }
img.image-loading {
  background: linear-gradient(110deg, #ece7df 0%, #f7f4ef 42%, #e6edf0 80%);
  background-size: 220% 100%;
  animation: image-loading-sheen 1.4s ease-in-out infinite;
}
img.image-loaded {
  background: transparent;
}
img.image-error {
  background: linear-gradient(135deg, #e8e4dd, #dfe7e4);
}
picture { display: contents; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

@keyframes image-loading-sheen {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  img.image-loading {
    animation: none;
  }
}

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-header.header-shadow {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-nav {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #161619;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 0.5;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #161619;
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.menu-toggle::before { content: ''; top: 0; }
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle::after { content: ''; bottom: 0; }

/* === Index Header Special Behavior === */
.index-header {
  background: transparent;
  padding: 24px 40px;
}

.index-header.scrolled {
  background: #fff;
  padding: 16px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.index-header.scrolled .site-logo img {
  height: 42px;
}

.index-header:not(.scrolled) .main-nav {
  display: none;
}

.index-header.scrolled .main-nav {
  display: block;
}

/* New Hamburger Menu Toggle */
.menu-toggle-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 101;
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-toggle-hamburger:hover {
  transform: scale(1.1);
}

.menu-toggle-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #161619;
  transition: background 0.3s ease;
}

/* Visibility: only show on transparent Index Header, hide when scrolled on desktop */
.index-header:not(.scrolled) .menu-toggle-hamburger {
  display: flex;
}

.index-header:not(.scrolled) .menu-toggle-hamburger span {
  background: #fff; /* White hamburger toggle in Hero transparent state */
}

.index-header.scrolled .menu-toggle-hamburger {
  display: none;
}

.index-header.scrolled .menu-toggle-hamburger span {
  background: #161619; /* Dark hamburger toggle in Scrolled solid state */
}


/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3;
}

.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-1 { background-image: url('../images/hero/1.jpg'); }
.hero-bg-2 { background-image: url('../images/hero/2.jpg'); }
.hero-bg-3 { background-image: url('../images/hero/3-v2.jpg'); }
.hero-bg-4 { background-image: url('../images/hero/4-v2.jpg'); }
.hero-bg-5 { background-image: url('../images/hero/5-v2.jpg'); }
.hero-bg-6 { background-image: url('../images/hero/6-v2.jpg'); }
.hero-bg-7 { background-image: url('../images/hero/7-v2.jpg'); }
.hero-bg-8 { background-image: url('../images/hero/8-v2.jpg'); }
.hero-bg-9 { background-image: url('../images/hero/9-v2.jpg'); }

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  animation: kenBurns 9.5s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  color: #fff;
  max-width: 800px;
  padding: 0 40px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* --- Scroll Down Indicator --- */
.scroll-down-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  z-index: 5;
  transition: color 0.3s ease, transform 0.3s ease;
  animation: bobbing 2.2s infinite ease-in-out;
}

.scroll-down-indicator:hover {
  color: #fff;
}

@keyframes bobbing {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* --- Hero Carousel Dots --- */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
}

.hero-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-dots .dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}


/* --- About Section (Home) --- */
.about-intro {
  padding: 120px 0;
  text-align: center;
}

.about-intro h2 {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.about-intro p {
  max-width: 750px;
  margin: 0 auto 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: #444;
}

.about-intro .signature {
  font-size: 20px;
  font-weight: 500;
  margin-top: 30px;
  color: #161619;
}

/* --- Section Title --- */
.section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 50px;
  text-align: right;
}

/* --- Projects Grid --- */
.projects-section {
  padding: 80px 0;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

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

.project-card .project-label {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.12em;
  z-index: 2;
  padding: 0 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.32);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s;
}

.project-card:hover::after {
  background: rgba(0,0,0,0.3);
}

/* 7th card alone on its row spans full width */
.project-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

.ver-mas {
  text-align: center;
  padding: 60px 0;
}

.ver-mas a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 1px solid #161619;
  padding-bottom: 5px;
}

/* --- Services Section --- */
.services-section {
  padding: 100px 0;
}

.services-intro-text {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.services-intro-text .lead-text {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.75;
  color: #161619;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}

.services-intro-text .sub-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: #555;
  letter-spacing: 0.2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
  max-width: 1100px;
}

.service-item {
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.service-item .service-icon {
  width: 24px;
  height: 24px;
  border: 1.5px solid #161619;
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
}

.service-item .service-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #161619;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service-item h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
}

.service-item p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #444;
  text-align: justify;
}

.service-item h3 .service-num {
  font-family: inherit;
  font-size: 13px;
  color: #888;
  letter-spacing: 1px;
  font-weight: 400;
  margin-right: 15px;
}

.service-pitch {
  font-size: 16px;
  font-weight: 500;
  color: #161619;
  margin-bottom: 8px;
  text-align: left;
}

.service-details {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  font-weight: 400;
  text-align: left;
}

.valor-section {
  margin-top: 80px;
  padding: 40px;
  background-color: #f7f7f9;
  border-left: 3px solid #161619;
  text-align: left;
}

.valor-section h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.valor-section h3 {
  font-size: 24px;
  font-weight: 500;
  color: #161619;
  margin-bottom: 10px;
}

.valor-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  font-weight: 400;
}

/* --- Map Section --- */
.map-section {
  padding: 100px 0;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.map-section .map-image {
  flex: 1;
}

.map-section .map-image img {
  max-width: 100%;
}

/* --- Contact Footer Section --- */
.contact-footer {
  padding: 80px 0;
  border-top: 1px solid #eee;
}

.contact-footer h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-footer p,
.contact-footer a {
  font-size: 16px;
  line-height: 2;
  color: #555;
}

/* --- Footer --- */
.site-footer {
  background: #161619;
  color: #e1e1e4;
  padding: 80px 40px 60px;
  border-top: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-column {
  flex: 1;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  display: block;
  width: 64px;
  flex-shrink: 0;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-left-text {
  display: flex;
  flex-direction: column;
}

.footer-left h3 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 4px;
}

.footer-left .footer-subtext {
  font-size: 13px;
  color: #777;
  margin-top: 16px;
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-center .footer-email a {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.footer-center .footer-socials {
  margin-top: 16px;
  font-size: 14px;
  color: #aaa;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-center .footer-socials a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-center .footer-socials a:hover {
  color: #fff;
  opacity: 1;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin-bottom: 8px;
}

.footer-right p:last-child {
  margin-bottom: 0;
}

.footer-right a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-right a:hover {
  color: #fff;
  opacity: 1;
  border-color: #fff;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.page-header .subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: #444;
  max-width: 700px;
  margin: 25px auto 0;
}

.page-header .back-link {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

/* --- Estudio (About) Page --- */
.estudio-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.mvv-section {
  padding: 60px 0;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.mvv-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.mvv-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.team-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 60px;
  padding: 60px 40px;
}

.team-images img {
  height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.team-images img:hover {
  transform: scale(1.08) translateY(-15px) !important;
  filter: drop-shadow(0 15px 30px rgba(22, 22, 25, 0.12));
  animation-play-state: paused;
}

/* Floating Animations for Brand Characters */
.team-images img:nth-child(1) {
  animation: floatChar1 4.5s ease-in-out infinite;
}

.team-images img:nth-child(2) {
  animation: floatChar2 5s ease-in-out infinite;
}

.team-images img:nth-child(3) {
  animation: floatChar3 4s ease-in-out infinite;
}

.estudio-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 0;
  text-align: left;
}

.estudio-intro h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.35;
  color: #161619;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estudio-intro p {
  font-size: 18px;
  line-height: 1.75;
  color: #444;
  font-weight: 400;
}

.team-images.estudio-team-strip {
  padding: 60px 0 40px;
}

.estudio-practices {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 20px;
}

.estudio-practices h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  text-align: left;
}

.estudio-practices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.estudio-practices-grid p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  font-weight: 400;
  text-align: justify;
  margin: 0;
}

.services-section.estudio-services {
  border-top: 1px solid #eee;
  padding-top: 60px;
  margin-top: 60px;
}

.estudio-services .container {
  max-width: 1000px;
  padding: 0 40px;
}

.estudio-services .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.estudio-services .services-intro-text {
  text-align: left;
  margin: 0 0 50px;
  max-width: 900px;
}

.estudio-services .lead-text {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.75;
  color: #161619;
  margin-bottom: 0;
}

.estudio-services .services-grid {
  max-width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.estudio-equipo {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.estudio-equipo img {
  width: 100%;
  display: block;
}

@keyframes floatChar1 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-24px) rotate(-4deg);
  }
}

@keyframes floatChar2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes floatChar3 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-3deg);
  }
}

.estudio-highlight {
  padding: 80px 40px;
  text-align: center;
}

.estudio-highlight h4 {
  font-size: 22px;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estudio-practices {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.estudio-practices h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

.estudio-practices p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* --- Proyectos Page --- */
.proyectos-list {
  padding: 0 0 100px;
}

/* Custom Asymmetric Masonry Grid */
.proyectos-grid-custom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  grid-auto-rows: 350px;
  max-width: 100%;
}

.proyectos-grid-custom .proyecto-row {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  margin: 0;
}

.proyectos-grid-custom .proyecto-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

/* Asymmetric grid puzzle layout repeating block of 4 cards */
.proyectos-grid-custom .proyecto-row:nth-child(4n+1),
.proyectos-grid-custom .proyecto-row.pos-1 {
  grid-column: 1;
  grid-row: span 2;
}

.proyectos-grid-custom .proyecto-row:nth-child(4n+2),
.proyectos-grid-custom .proyecto-row.pos-2 {
  grid-column: 2;
  grid-row: span 1;
}

.proyectos-grid-custom .proyecto-row:nth-child(4n+3),
.proyectos-grid-custom .proyecto-row.pos-3 {
  grid-column: 2;
  grid-row: span 2;
}

.proyectos-grid-custom .proyecto-row:nth-child(4n),
.proyectos-grid-custom .proyecto-row.pos-4 {
  grid-column: 1;
  grid-row: span 1;
}

/* Fallback/Standard single-row format */
.proyecto-row {
  display: block;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  height: 400px;
  /* Smoother transition of multiple properties for filtering and reveal */
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.proyecto-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.proyecto-row:hover img {
  transform: scale(1.05);
}

.proyecto-row .proyecto-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.proyecto-row:hover .proyecto-info {
  transform: translateY(-8px);
}

.proyecto-row .proyecto-category {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.proyecto-row .proyecto-name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
}

.proyecto-row .proyecto-link {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}

.proyecto-row .proyecto-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.proyecto-row:hover .proyecto-link::after {
  transform: scaleX(1);
}

.proyecto-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  transition: opacity 0.5s ease;
}

.proyecto-row:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* --- Dynamic Filter & Transition Classes --- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0 auto 50px;
  padding: 0 40px;
  max-width: 100%;
}

.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.filter-btn:hover {
  color: #161619;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #161619;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 100%;
  left: 0;
}

.filter-btn.active {
  color: #161619;
  font-weight: 600;
}

/* Filtering Transitions States */
.proyecto-row.hidden {
  display: none !important;
}

.proyecto-row.exiting {
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  pointer-events: none;
}

.proyecto-row.entering {
  opacity: 0;
  transform: scale(0.95) translateY(15px);
}

/* Scroll Entrance reveal classes */
.proyecto-row.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.proyecto-row.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Contacto Page --- */
.contacto-section {
  padding: 40px 0 100px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #161619;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 30px;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #161619;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: #161619;
  color: #fff;
  border: none;
  padding: 14px 50px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #333;
}

.contact-info-block h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.contact-info-block p {
  font-size: 17px;
  font-weight: 400;
  color: #444;
  margin-bottom: 30px;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 99;
}

.scroll-top.visible { opacity: 1; }

.scroll-top svg {
  width: 16px;
  height: 16px;
}

/* --- Language Switch --- */
.language-switch {
  position: fixed;
  left: 32px;
  bottom: 0;
  width: 68px;
  height: 58px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #161619;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 250;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  background: #222226;
  box-shadow: 0 -6px 22px rgba(0,0,0,0.24);
  transform: translateY(-2px);
  opacity: 1;
}

.language-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.language-switch-flag,
.language-switch-code {
  width: 26px;
  height: 16px;
}

.language-switch-flag {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.28);
}

.language-switch-flag span:nth-child(1) { background: #006847; }
.language-switch-flag span:nth-child(2) {
  background: #fff;
  position: relative;
}
.language-switch-flag span:nth-child(2)::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9914f;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.language-switch-flag span:nth-child(3) { background: #ce1126; }

.language-switch-code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1;
}

body.lang-en .language-switch-flag {
  display: none;
}

body.lang-en .language-switch-code {
  display: flex;
}

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

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .mvv-grid { grid-template-columns: 1fr; gap: 30px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 50px; }
  .fullscreen-menu-left { padding-left: 10%; }
  .fullscreen-nav a { font-size: 34px; }
}

@media (max-width: 768px) {
  .site-header { padding: 15px 20px; }
  .site-logo img { height: 40px; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 25px; }
  .main-nav a { font-size: 18px; }

  .menu-toggle { display: block; z-index: 201; }

  .hero-content h1 { font-size: 32px; }
  .about-intro h2 { font-size: 30px; }
  .about-intro { padding: 80px 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 16/10; }

  .container { padding: 0 20px; }
  .page-header h1 { font-size: 32px; }
  .page-header { padding: 120px 0 50px; }

  .proyecto-row { height: 300px; }
  .proyecto-row .proyecto-name { font-size: 22px; }

  .team-images { gap: 30px; padding: 40px 20px; }
  .team-images img { height: 140px; }

  .map-section { flex-direction: column; }

  .site-footer {
    padding: 60px 20px 40px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 40px;
  }
  .footer-left {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .footer-left-text {
    text-align: left;
  }
  .footer-right {
    text-align: center;
    justify-content: center;
  }

  /* Mobile Custom Projects Grid Override */
  .proyectos-grid-custom {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    padding: 0;
  }
  .proyectos-grid-custom .proyecto-row {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Mobile Rules for Index Header with Fullscreen Menu */
  .index-header .main-nav {
    display: none !important;
  }
  .index-header .menu-toggle {
    display: none !important;
  }
  .index-header .menu-toggle-hamburger {
    display: flex !important;
  }

  /* Fullscreen menu mobile layout */
  .fullscreen-menu-header {
    padding: 15px 20px;
    height: 70px;
  }
  .fullscreen-menu-header .menu-logo img {
    height: 40px;
  }
  .fullscreen-menu-right {
    display: none;
  }
  .fullscreen-menu-left {
    flex: 1;
    width: 100%;
    padding-left: 40px;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .fullscreen-menu.open .fullscreen-menu-left {
    transform: translateY(0);
  }
  .fullscreen-nav a {
    font-size: 28px;
  }

  .language-switch {
    left: 20px;
    width: 58px;
    height: 50px;
  }
}

/* ============================================
   FULLSCREEN OVERLAY MENU STYLE
   ============================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fullscreen-menu-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1010;
  background: transparent;
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'function_pro', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.menu-close-btn:hover {
  opacity: 0.6;
}

.menu-close-btn .close-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
}

.fullscreen-menu-header .menu-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.fullscreen-menu-header .menu-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.fullscreen-menu-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.fullscreen-menu-left {
  flex: 1;
  background: #161619;
  display: flex;
  align-items: center;
  padding-left: 15%;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-100%);
  height: 100%;
}

.fullscreen-menu-right {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(100%);
  height: 100%;
}

.fullscreen-menu-bg {
  background-image: url('../images/hero/1.jpg');
}

.fullscreen-menu.open .fullscreen-menu-left,
.fullscreen-menu.open .fullscreen-menu-right {
  transform: translateX(0);
}

.fullscreen-nav ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fullscreen-nav li {
  overflow: visible;
}

.fullscreen-nav a {
  font-family: 'function_pro', 'DM Sans', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
}

.fullscreen-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.fullscreen-nav a:hover {
  opacity: 1;
  transform: translateX(12px);
}

.fullscreen-nav a:hover::after {
  width: 100%;
}

/* ===== BLOQUE N SECTION ===== */
.bloque-n-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.bloque-n-image {
  overflow: hidden;
}

.bloque-n-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bloque-n-text {
  background: #161619;
  color: #fff;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bloque-n-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}

.bloque-n-text h2 {
  font-size: 38px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bloque-n-tagline {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 32px;
}

.bloque-n-body {
  font-size: 16px;
  line-height: 1.85;
  color: #bbb;
  font-weight: 300;
  margin-bottom: 44px;
}

.bloque-n-link {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}

.bloque-n-link:hover {
  color: #aaa;
  border-color: #aaa;
}

@media (max-width: 768px) {
  .bloque-n-section {
    grid-template-columns: 1fr;
  }
  .bloque-n-image {
    height: 300px;
  }
  .bloque-n-text {
    padding: 50px 30px;
  }
}

/* ===== PROYECTOS EDITORIAL GRID ===== */
.proy-lista {
  padding: 0 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.proy-bloque {
  margin-bottom: 90px;
}

.proyectos-js .proy-bloque.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.proyectos-js .proy-bloque.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 60px 80px;
}

.privacy-content h1 {
  font-size: 42px;
  font-weight: 500;
  color: #161619;
  margin-bottom: 50px;
}

.privacy-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #161619;
  margin: 40px 0 15px;
}

.privacy-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #161619;
  margin: 30px 0 10px;
}

.privacy-content p {
  font-size: 16px;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.privacy-content strong {
  font-weight: 600;
  color: #161619;
}

.privacy-content a {
  color: #161619;
  text-decoration: underline;
}

.privacy-content .last-update {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
  font-weight: 500;
  color: #161619;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 100px 20px 60px;
  }

  .privacy-content h1 {
    font-size: 32px;
  }
}

.proy-media {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  height: 580px;
  text-decoration: none;
  overflow: hidden;
}

.proy-media--duo {
  grid-template-columns: 3fr 1.5fr;
}

.proy-reverse .proy-media {
  grid-template-columns: 2fr 3fr;
}

.proy-reverse .proy-media--duo {
  grid-template-columns: 1.5fr 3fr;
}

.proy-hero {
  overflow: hidden;
  height: 100%;
}

.proy-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.proy-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.proy-thumbs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.proy-thumbs picture {
  flex: 1;
  display: block;
  width: 100%;
  min-height: 0;
}

.proy-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.proy-media:hover .proy-hero img,
.proy-media:hover .proy-thumbs img {
  transform: scale(1.04);
}

.proy-reverse .proy-media {
  direction: rtl;
}

.proy-reverse .proy-media > * {
  direction: ltr;
}

.proy-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
}

.proy-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  white-space: nowrap;
}

.proy-name {
  font-size: 20px;
  font-weight: 500;
  color: #161619;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.proy-name:hover {
  opacity: 0.55;
}

.proy-ver {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.proy-ver:hover {
  color: #161619;
}

@media (max-width: 900px) {
  .proy-lista { padding: 0 20px 60px; }

  .proy-media,
  .proy-reverse .proy-media {
    grid-template-columns: 1fr;
    grid-template-rows: 60vw auto;
    height: auto;
    direction: ltr;
  }

  .proy-thumbs {
    flex-direction: row;
    height: 28vw;
  }

  .proy-info {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .proy-ver { display: none; }
}

/* ===== TALENT / CONTACTO PAGE ===== */
.talent-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 70px);
}

.talent-image {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.talent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.talent-content {
  background: #161619;
  color: #fff;
  padding: 100px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.talent-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 32px;
  display: block;
}

.talent-heading {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 44px;
  text-transform: uppercase;
}

.talent-body {
  margin-bottom: 48px;
}

.talent-body p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: #aaa;
  margin-bottom: 18px;
}

.talent-body p:last-child {
  margin-bottom: 0;
}

.talent-cta {
  margin-bottom: 60px;
}

.talent-cta-text {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

.talent-email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}

.talent-email-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.talent-email-link:hover {
  color: #ccc;
  border-color: rgba(255,255,255,0.5);
}

.talent-email-link:hover svg {
  transform: translateX(4px);
}

.talent-footer-info {
  display: flex;
  gap: 40px;
  border-top: 1px solid #2a2a2d;
  padding-top: 32px;
}

.talent-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.talent-info-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #555;
}

.talent-info-item a {
  font-size: 14px;
  font-weight: 400;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.talent-info-item a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .talent-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .talent-image {
    position: relative;
    top: auto;
    height: 55vw;
    min-height: 300px;
  }

  .talent-content {
    padding: 60px 30px 70px;
  }

  .talent-heading {
    font-size: 36px;
  }

  .talent-footer-info {
    flex-wrap: wrap;
    gap: 24px;
  }
}

/* ============================================
   RESPONSIVE — Mobile padding fixes (≤768px)
   ============================================ */
@media (max-width: 768px) {

  /* Estudio page */
  .estudio-intro {
    padding: 100px 20px 0;
  }

  .estudio-practices {
    padding: 24px 20px;
    max-width: 100%;
  }

  .estudio-practices-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mvv-grid {
    padding: 0 20px;
  }

  .estudio-highlight {
    padding: 60px 20px;
  }

  .estudio-equipo {
    padding: 0 20px 50px;
  }

  .estudio-services .container {
    padding: 0 20px;
  }

  /* Valor section */
  .valor-section {
    padding: 28px 20px;
    margin-top: 40px;
  }

  /* Proyectos filter bar */
  .filter-bar {
    padding: 0 20px;
    gap: 14px;
  }

  /* Map section */
  .map-section {
    padding: 60px 0;
    flex-direction: column;
    gap: 30px;
  }

  /* About intro — reduce top padding */
  .about-intro {
    padding: 70px 0;
  }

  /* Projects section */
  .projects-section {
    padding: 50px 0;
  }

  /* Services section */
  .services-section {
    padding: 60px 0;
  }

  /* Page header */
  .page-header {
    padding: 110px 20px 40px;
  }

  /* Scroll top button */
  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ============================================
   RESPONSIVE — Small phones (≤480px)
   ============================================ */
@media (max-width: 480px) {

  /* Talent / Contacto page */
  .talent-content {
    padding: 40px 20px 50px;
  }

  .talent-heading {
    font-size: 30px;
  }

  .talent-email-link {
    font-size: 17px;
  }

  /* Hero text */
  .hero-content h1 {
    font-size: 26px;
    letter-spacing: 1px;
  }

  /* Estudio intro heading */
  .estudio-intro h1 {
    font-size: 28px;
  }

  /* Page header */
  .page-header h1 {
    font-size: 26px;
    letter-spacing: 1px;
  }

  /* Bloque N */
  .bloque-n-text {
    padding: 40px 20px;
  }

  .bloque-n-text h2 {
    font-size: 28px;
  }

  /* Footer mobile */
  .site-footer {
    padding: 50px 20px 40px;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Filter bar — stack on very small screens */
  .filter-bar {
    gap: 10px;
  }

  .filter-btn {
    font-size: 11px;
    letter-spacing: 1px;
  }

  /* Project card label */
  .project-card .project-label {
    font-size: 28px;
    letter-spacing: 0.1em;
  }

  /* 7th card panoramic — reduce height on mobile */
  .project-card:last-child:nth-child(3n+1) {
    aspect-ratio: 16/9;
  }
}

/* ============================================
   CONTACT FORM — sección independiente blanca
   ============================================ */
.contact-form-section {
  background: #fff;
  width: 100%;
}

.contact-form-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

/* Mensajes éxito / error */
.form-message {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #161619;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 32px;
}

.form-message svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-success {
  background: #f0faf4;
  color: #2d7a52;
  border: 1px solid #b6dfc9;
}

.form-error {
  background: #fdf2f2;
  color: #c0392b;
  border: 1px solid #e8b4b4;
}

/* Form layout */
.contact-form-dark {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label-dark {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
}

.form-input-dark {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  color: #161619;
  font-family: 'function_pro', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  resize: none;
}

.form-input-dark::placeholder {
  color: #ccc;
}

.form-input-dark:focus {
  border-bottom-color: #161619;
}

.form-input-dark.input-error {
  border-bottom-color: #c0392b;
}

.field-error {
  display: block;
  font-size: 11px;
  color: #c0392b;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* Botón enviar */
.form-submit-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: none;
  border: none;
  border-bottom: 1px solid #161619;
  color: #161619;
  font-family: 'function_pro', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 0 6px;
  cursor: pointer;
  transition: opacity 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-submit-dark svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.form-submit-dark:hover {
  opacity: 0.5;
}

.form-submit-dark:hover svg {
  transform: translateX(4px);
}

/* Footer right — links uno debajo del otro */
.footer-right {
  text-align: right;
}

.footer-right p {
  margin-bottom: 8px;
}

.footer-right p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-inner {
    padding: 60px 20px 70px;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Final title font override: keep menus, buttons, forms and body text on function_pro. */
h1,
h2,
h3,
h4,
.hero-content h1,
.about-intro h2,
.section-title,
.project-card .project-label,
.service-item h3,
.valor-section h3,
.valor-section h4,
.contact-footer h3,
.page-header h1,
.mvv-item h4,
.estudio-intro h1,
.estudio-practices h2,
.estudio-highlight h4,
.estudio-practices h4,
.proyecto-row .proyecto-name,
.contact-info-block h3,
.bloque-n-label,
.bloque-n-text h2,
.bloque-n-tagline,
.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.proy-cat,
.proy-name,
.talent-label,
.talent-heading {
  font-family: 'Six Caps', 'function_pro', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
}

/* Six Caps reads optically smaller than function_pro; this scale keeps titles balanced with body copy. */
.section-title,
.estudio-practices h2,
.valor-section h4,
.bloque-n-label,
.proy-cat,
.contact-info-block h3,
.talent-label {
  font-size: 30px !important;
  line-height: 1;
  letter-spacing: 0.1em;
}

.mvv-item h4,
.service-item h3,
.valor-section h3,
.estudio-practices h4,
.privacy-content h3,
.contact-footer h3 {
  font-size: 34px !important;
  line-height: 1.05;
}

.about-intro h2,
.page-header h1,
.estudio-intro h1,
.estudio-highlight h4,
.bloque-n-text h2,
.privacy-content h1,
.privacy-content h2,
.proy-name,
.talent-heading {
  font-size: 56px !important;
  line-height: 0.95;
}

.hero-content h1 {
  font-size: 72px !important;
  line-height: 0.95;
}

.project-card .project-label,
.proyecto-row .proyecto-name {
  font-size: 40px !important;
  line-height: 0.95;
}

@media (max-width: 768px) {
  .section-title,
  .estudio-practices h2,
  .valor-section h4,
  .bloque-n-label,
  .proy-cat,
  .contact-info-block h3,
  .talent-label {
    font-size: 26px !important;
  }

  .about-intro h2,
  .page-header h1,
  .estudio-intro h1,
  .estudio-highlight h4,
  .bloque-n-text h2,
  .privacy-content h1,
  .privacy-content h2,
  .proy-name,
  .talent-heading {
    font-size: 44px !important;
  }

  .hero-content h1 {
    font-size: 54px !important;
  }

  .project-card .project-label,
  .proyecto-row .proyecto-name {
    font-size: 34px !important;
  }
}

@media (max-width: 480px) {
  .about-intro h2,
  .page-header h1,
  .estudio-intro h1,
  .estudio-highlight h4,
  .bloque-n-text h2,
  .privacy-content h1,
  .privacy-content h2,
  .proy-name,
  .talent-heading {
    font-size: 38px !important;
  }

  .hero-content h1 {
    font-size: 46px !important;
  }
}
