/* ============================================================================
   UNIHKS - Luxury Renovation Studio
   Premium Design System & Component Styles
   ============================================================================ */

/* ============================================================================
   ROOT VARIABLES & TYPOGRAPHY
   ============================================================================ */
:root {
  --ivory: #F5F2EC;
  --cream: #EDE8DF;
  --stone: #D6CFC2;
  --warm: #B8A99A;
  --muted: #8C7D70;
  --dark: #2A2520;
  --ink: #1A1613;
  --accent: #C4A882;
  --rust: #9E6B4A;
  --white: #FAFAF8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

/* ============================================================================
   CUSTOM CURSOR
   ============================================================================ */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s;
}

body.hov #cursor {
  width: 6px;
  height: 6px;
}

body.hov #cursor-ring {
  width: 56px;
  height: 56px;
  opacity: 0.15;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: background 0.5s, padding 0.4s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

nav.sc {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-color: var(--stone);
}

/* Logo: dark by default (white bg), white on dark hero pages */
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: none;
}

.nav-logo svg path {
  fill: #1A1613 !important;
  transition: fill 0.5s;
}

/* Dark hero pages: logo & elements go white before scroll */
body.dark-nav .nav-logo svg path {
  fill: #F5F2EC !important;
}

body.dark-nav .burger span {
  background: var(--white);
}

body.dark-nav #mn .nav-cta {
  color: rgba(245, 242, 236, 0.85);
  border-color: rgba(245, 242, 236, 0.25);
}

/* On scroll, always revert to dark (higher specificity to override body.dark-nav) */
body #mn.sc .nav-logo svg path {
  fill: #1A1613 !important;
}

body #mn.sc .burger span {
  background: var(--ink) !important;
}

body #mn.sc .nav-cta {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* Nav links: hidden always — navigation lives in hamburger menu */
.nav-links {
  display: none;
}

/* CTA button base */
.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 12px 24px;
  text-decoration: none;
  transition: color 0.5s, background 0.5s, border-color 0.5s;
  cursor: none;
}

.nav-cta:hover {
  background: var(--rust);
}

/* CTA centered in top nav via position absolute */
#mn .nav-cta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  background: none;
  border: 1px solid var(--stone);
}

#mn.sc .nav-cta {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

#mn .nav-cta:hover {
  color: var(--white);
  background: var(--rust);
  border-color: var(--rust);
}

/* Burger: always visible — 44×44 touch target */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: background 0.5s;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding: 100px 48px 24px;
}

.hero-video-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 22, 19, 0.55) 0%, rgba(26, 22, 19, 0.1) 60%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 24px;
  left: 48px;
  z-index: 2;
  padding: 0 48px 80px;
  max-width: 720px;
}

.hero-eye {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eye::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(245, 242, 236, 0.85);
  max-width: 380px;
  margin-bottom: 52px;
}

.hero-cta-single {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 16px 32px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  cursor: none;
}

.hero-cta-single:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute;
  bottom: 56px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: var(--accent);
  animation: sl 2s ease-in-out infinite;
}

@keyframes sl {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.01% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================================
   COUNTER BAR
   ============================================================================ */
#counter-bar {
  background: var(--ink);
  padding: 60px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  justify-items: center;
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.counter-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.counter-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.55);
}

/* ============================================================================
   GENERIC SECTION STYLES
   ============================================================================ */
section {
  padding: 120px 64px;
}

.s-eye {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-eye::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--warm);
}

.s-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.s-title em {
  font-style: italic;
  color: var(--rust);
}

/* ============================================================================
   PAGE HEADER (for inner pages)
   ============================================================================ */
.page-hero {
  background: var(--ink);
  padding: 180px 64px 80px;
  position: relative;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.7);
  margin-top: 20px;
  max-width: 500px;
}

.page-hero .s-eye {
  color: var(--accent);
}

.page-hero .s-eye::before {
  background: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
  margin-bottom: 20px;
}

.back-link:hover {
  color: var(--ink);
}

.back-link::before {
  content: '←';
  font-size: 14px;
}

/* ============================================================================
   PROYECTOS (PROJECTS) SECTION
   ============================================================================ */
#proyectos {
  background: var(--white);
  padding: 120px 0 0;
}

.proy-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 64px 64px;
}

.proy-hd-l {
  max-width: 560px;
}

.proy-hd-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.proy-filter {
  display: flex;
  gap: 0;
  border: 1px solid var(--stone);
}

.fb {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: none;
  transition: background 0.2s, color 0.2s;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fb:nth-child(1) {
  animation-delay: 0;
}

.fb:nth-child(2) {
  animation-delay: 0.1s;
}

.fb:nth-child(3) {
  animation-delay: 0.2s;
}

.fb:nth-child(4) {
  animation-delay: 0.3s;
}

.fb.a,
.fb:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============================================================================
   PROJECT GRID - SYMMETRIC 3-COLUMN LAYOUT
   ============================================================================ */
.pg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 48px;
}

.pc {
  position: relative;
  overflow: hidden;
  cursor: none;
  background: var(--cream);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  opacity: 1;
  aspect-ratio: 4 / 3;
}

.pc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  display: block;
}

.pc:hover img {
  transform: scale(1.06);
}

.pc-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 19, 0.85) 0%, rgba(26, 22, 19, 0) 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.pc:hover .pc-ov {
  opacity: 1;
}

.pc-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pc-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.pc-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
}

.pc-arr {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.4s;
}

.pc:hover .pc-arr {
  opacity: 1;
}

.proy-ft {
  padding: 64px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--cream);
}

.btn-o {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--stone);
  padding: 16px 40px;
  cursor: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-o:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-p {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}

.btn-p:hover {
  color: var(--rust);
}

/* ============================================================================
   CTA BANNERS
   ============================================================================ */
.cta-banner {
  background: var(--ivory);
  padding: 56px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-banner-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-banner-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}

.cta-banner-title em {
  font-style: italic;
  color: var(--rust);
}

.cta-banner-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
}

/* ============================================================================
   MANIFIESTO (MANIFESTO) SECTION
   ============================================================================ */
#manifiesto {
  background: var(--ink);
  padding: 140px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.man-q {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

.man-q em {
  font-style: italic;
  color: var(--accent);
}

.man-qm {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 300;
  color: var(--rust);
  line-height: 0.6;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

.man-r {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.man-txt {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.75);
  border-left: 1px solid var(--rust);
  padding-left: 24px;
}

.man-vals {
  display: flex;
  flex-direction: column;
}

.man-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.08);
}

.man-val:first-child {
  border-top: 1px solid rgba(245, 242, 236, 0.08);
}

.man-vn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.man-vd {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.6);
  text-align: right;
  max-width: 200px;
}

/* ============================================================================
   PROJECT DETAIL (FICHA) - Modal Styles
   ============================================================================ */
.ficha-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
}

.ficha-modal.open {
  display: block;
  animation: fichaIn 0.5s var(--ease-out);
}

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

.ficha-close {
  position: fixed;
  top: 28px;
  right: 48px;
  z-index: 510;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stone);
  padding: 12px 20px;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.ficha-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.ficha-section {
  background: var(--ivory);
  padding: 0;
}

.ficha-bcn-hero {
  position: relative;
  height: 80vh;
  min-height: 560px;
  overflow: hidden;
}

.ficha-bcn-hero img,
.ficha-bcn-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha-bcn-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 19, 0.75) 0%, rgba(26, 22, 19, 0) 45%);
}

.ficha-bcn-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 56px 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ficha-bcn-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ficha-bcn-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.ficha-bcn-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ficha-bcn-specs {
  display: flex;
  gap: 48px;
}

.ficha-spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ficha-spec-l {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.ficha-spec-v {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
}

/* ============================================================================
   PROJECT DETAIL - Editorial Gallery
   ============================================================================ */
.ficha-body {
  max-width: 1440px;
  margin: 0 auto;
}

.ficha-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ficha-intro-txt {
  background: var(--ivory);
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.ficha-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark);
}

.ficha-materials {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.ficha-mat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
}

.ficha-mat:first-child {
  border-top: 1px solid var(--stone);
}

.ficha-mat-n {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.ficha-mat-v {
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
}

.ficha-intro-img {
  overflow: hidden;
  min-height: 500px;
}

.ficha-intro-img img,
.ficha-intro-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
  display: block;
}

.ficha-intro-img:hover img,
.ficha-intro-img:hover video {
  transform: scale(1.04);
}

.ficha-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ficha-row3 .fc {
  overflow: hidden;
  height: 380px;
  position: relative;
  cursor: none;
}

.ficha-row3 .fc img,
.ficha-row3 .fc video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  display: block;
}

.ficha-row3 .fc:hover img,
.ficha-row3 .fc:hover video {
  transform: scale(1.06);
}

.ficha-row3 .fc-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
}

.ficha-row21 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2px;
}

.ficha-row21 .fc {
  overflow: hidden;
  height: 440px;
  position: relative;
  cursor: none;
}

.ficha-row21 .fc img,
.ficha-row21 .fc video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  display: block;
}

.ficha-row21 .fc:hover img,
.ficha-row21 .fc:hover video {
  transform: scale(1.06);
}

.ficha-full {
  overflow: hidden;
  height: 520px;
  position: relative;
}

.ficha-full img,
.ficha-full video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 8s var(--ease-out);
  display: block;
}

.ficha-full:hover img,
.ficha-full:hover video {
  transform: scale(1.03);
}

.ficha-cta {
  background: var(--ink);
  padding: 80px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.ficha-cta-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ficha-cta-t {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}

.ficha-cta-t em {
  font-style: italic;
  color: var(--accent);
}

.ficha-cta-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.7);
}

/* ============================================================================
   PROCESO (PROCESS) SECTION
   ============================================================================ */
#proceso {
  background: var(--ivory);
  padding: 140px 64px;
}

.proc-hd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: end;
}

.proc-intro {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark);
  margin-top: 24px;
}

.proc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.proc-step {
  background: var(--white);
  padding: 40px 32px 48px;
  position: relative;
  transition: background 0.3s;
}

.proc-step:hover {
  background: var(--ink);
}

.proc-step::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.proc-step:hover::before {
  transform: scaleX(1);
}

.proc-n {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 32px;
  transition: color 0.3s;
}

.proc-step:hover .proc-n {
  color: rgba(245, 242, 236, 0.12);
}

.proc-t {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.3s;
}

.proc-step:hover .proc-t {
  color: var(--white);
}

.proc-d {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--dark);
  transition: color 0.3s;
}

.proc-step:hover .proc-d {
  color: rgba(245, 242, 236, 0.5);
}

.proc-dur {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s;
}

.proc-step:hover .proc-dur {
  color: var(--accent);
}

/* ============================================================================
   SERVICIOS (SERVICES) SECTION
   ============================================================================ */
#servicios {
  background: var(--white);
  padding: 140px 64px;
}

.serv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 72px;
}

.serv-item {
  padding: 56px 48px;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
  cursor: none;
}

.serv-item:hover {
  background: var(--cream);
}

.serv-n {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm);
  letter-spacing: 0.08em;
}

.serv-t {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
}

.serv-d {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--dark);
  max-width: 420px;
}

.serv-lnk {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: none;
  transition: gap 0.3s;
}

.serv-lnk:hover {
  gap: 14px;
}

.serv-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.serv-item:hover .serv-line {
  transform: scaleX(1);
}

/* ============================================================================
   ESTUDIO (STUDIO) SECTION
   ============================================================================ */
#estudio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.est-img {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.est-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
  display: block;
}

.est-img:hover img {
  transform: scale(1.04);
}

.est-content {
  background: var(--ivory);
  padding: 100px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.est-txt {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 40px;
  margin-top: 28px;
}

.est-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.tm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.tm-role {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}

.est-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--stone);
}

.etag {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--stone);
  padding: 6px 14px;
}

/* ============================================================================
   TESTIMONIOS (TESTIMONIALS) - CAROUSEL
   ============================================================================ */
#testimonios {
  background: var(--cream);
  padding: 120px 64px;
}

.test-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  min-height: 400px;
}

.test-carousel {
  background: var(--white);
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 700px;
  text-align: center;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease-out;
  animation: fadeInCarousel 0.8s ease-out forwards;
}

@keyframes fadeInCarousel {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.test-carousel.active {
  animation: fadeInCarousel 0.8s ease-out forwards;
}

.test-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  font-size: 13px;
  justify-content: center;
}

.test-q {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
}

.test-aut {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.test-proj {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

.test-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

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

.dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

/* ============================================================================
   FLOATING CTA
   ============================================================================ */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 16px 24px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  cursor: none;
  border-radius: 4px;
}

.floating-cta:hover {
  background: var(--rust);
  transform: translateY(-2px);
}

/* ============================================================================
   MULTI-STEP CONTACT FORM
   ============================================================================ */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-wrapper {
  display: none;
}

.form-wrapper.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(245, 242, 236, 0.15);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease-out;
}

.progress-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-step-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.2;
}

.form-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-card {
  padding: 28px 20px;
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(245, 242, 236, 0.12);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.form-card:hover,
.form-card.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.form-card-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.4);
}

.fi,
.fsel,
.fta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  background: rgba(245, 242, 236, 0.05);
  border: 1px solid rgba(245, 242, 236, 0.12);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s;
  cursor: none;
  -webkit-appearance: none;
  border-radius: 4px;
}

.fi::placeholder,
.fta::placeholder {
  color: rgba(245, 242, 236, 0.2);
}

.fi:focus,
.fsel:focus,
.fta:focus {
  border-color: var(--accent);
}

.fsel option {
  background: var(--ink);
}

.fta {
  min-height: 120px;
  resize: vertical;
}

.form-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.form-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: none;
  transition: all 0.3s;
  border-radius: 4px;
  flex: 1;
}

.form-btn-primary {
  color: var(--ink);
  background: var(--accent);
  text-align: center;
}

.form-btn-primary:hover {
  background: var(--white);
}

.form-btn-secondary {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}

.form-btn-secondary:hover {
  background: rgba(196, 168, 130, 0.1);
}

.fsub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border: none;
  padding: 18px 40px;
  cursor: none;
  transition: background 0.3s;
  text-align: center;
  width: 100%;
  border-radius: 4px;
}

.fsub:hover {
  background: var(--white);
}

.fdis {
  font-size: 11px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.4);
  line-height: 1.6;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  background: var(--dark);
  padding: 48px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(245, 242, 236, 0.06);
}

.f-proof {
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.5);
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 242, 236, 0.06);
}

.f-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.4);
}

.f-copy {
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 242, 236, 0.4);
  letter-spacing: 0.06em;
}

.f-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.f-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.45);
  text-decoration: none;
  transition: color 0.3s;
  cursor: none;
}

.f-links a:hover {
  color: rgba(245, 242, 236, 0.7);
}

/* ============================================================================
   REVEAL ANIMATIONS
   ============================================================================ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.rv.v {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.1s;
}

.d2 {
  transition-delay: 0.2s;
}

.d3 {
  transition-delay: 0.3s;
}

.d4 {
  transition-delay: 0.4s;
}

/* ============================================================================
   RESPONSIVE - TABLET (1024px and below)
   ============================================================================ */
@media (max-width: 1024px) {
  .floating-cta {
    display: block;
  }

  nav {
    padding: 22px 32px;
  }

  nav.sc {
    padding: 16px 32px;
  }

  .nav-cta {
    font-size: 10px;
    padding: 10px 18px;
  }

  #hero {
    padding: 80px 32px 16px;
  }

  .hero-content {
    max-width: 100%;
    left: 32px;
    bottom: 16px;
    padding: 0 28px 56px;
  }

  .pg {
    padding: 0 32px;
  }

  .scroll-hint {
    right: 32px;
    bottom: 32px;
  }

  section {
    padding: 80px 40px;
  }

  #counter-bar {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }

  #manifiesto,
  #estudio {
    grid-template-columns: 1fr;
    padding: 80px 40px;
  }

  .est-img {
    min-height: 400px;
  }

  .est-content {
    padding: 60px 40px;
  }

  .proc-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  #contacto {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 40px;
  }

  .proy-hd {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0 40px 48px;
  }

  .pg {
    grid-template-columns: repeat(2, 1fr);
  }

  .pc {
    aspect-ratio: 4 / 3;
  }

  .test-carousel {
    padding: 40px 32px;
  }

  footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 40px;
  }

  .f-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ficha-intro {
    grid-template-columns: 1fr;
  }

  .ficha-row3 {
    grid-template-columns: 1fr;
  }

  .ficha-row3 .fc {
    height: 280px;
  }

  .ficha-row21 {
    grid-template-columns: 1fr;
  }

  .ficha-row21 .fc {
    height: 320px;
  }

  .ficha-cta {
    flex-direction: column;
    padding: 60px 40px;
  }

  .ficha-bcn-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
  }

  .proc-hd {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 120px 40px 60px;
  }

  .page-hero-title {
    font-size: clamp(36px, 5vw, 64px);
  }

  body {
    cursor: auto;
  }

  #cursor,
  #cursor-ring {
    display: none;
  }
}

/* ============================================================================
   RESPONSIVE - MOBILE (640px and below)
   ============================================================================ */
@media (max-width: 640px) {
  section {
    padding: 64px 24px;
  }

  #hero {
    padding: 72px 24px 12px;
  }

  .hero-content {
    left: 24px;
    bottom: 12px;
    padding: 0 16px 40px;
  }

  .scroll-hint {
    right: 20px;
    bottom: 20px;
  }

  #counter-bar {
    padding: 40px 24px;
  }

  .pg {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .proy-hd {
    padding: 0 24px 40px;
  }

  .proy-ft {
    padding: 48px 24px;
  }

  .est-team {
    grid-template-columns: 1fr;
  }

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

  .form-cards {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 32px 24px;
  }

  nav {
    padding: 18px 24px;
  }

  .ficha-bcn-specs {
    flex-wrap: wrap;
    gap: 20px;
  }

  .ficha-bcn-caption {
    padding: 32px 24px;
  }

  .ficha-intro-txt,
  .ficha-cta {
    padding: 40px 24px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 10px;
  }

  .page-hero {
    padding: 80px 24px 48px;
  }

  .page-hero-title {
    font-size: clamp(32px, 4.5vw, 52px);
  }
}
