/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:   #f5f0e8;
  --warm:    #ede6d6;
  --sand:    #c9b99a;
  --stone:   #8a7966;
  --earth:   #4a3f35;
  --dark:    #1a1612;
  --accent:  #9c7c5a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(156,124,90,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 60px; height: 60px;
  border-color: var(--accent);
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  mix-blend-mode: normal;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,22,18,0.8), transparent);
  pointer-events: none;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--cream);
  text-decoration: none;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  position: relative;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(245,240,232,0.4);
  padding: 0.6rem 1.6rem;
  position: relative;
  transition: border-color 0.3s, color 0.3s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1800&q=85&auto=format');
  background-size: cover;
  background-position: center;
  transform-origin: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,22,18,0.9) 0%,
    rgba(26,22,18,0.4) 50%,
    rgba(26,22,18,0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--sand);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--sand);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.6);
  max-width: 380px;
  line-height: 1.8;
}
.hero-scroll {
  position: absolute;
  right: 4rem;
  bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--stone), transparent);
  transform-origin: top;
}

/* ─── SECTION BASE ─── */
section { position: relative; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* ─── STATEMENT ─── */
#statement {
  padding: 12rem 4rem;
  display: flex;
  justify-content: center;
}
.statement-inner {
  max-width: 900px;
  text-align: center;
}
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream);
}
.statement-text em { font-style: italic; color: var(--sand); }
.statement-rule {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  margin: 4rem auto;
}
.statement-body {
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(245,240,232,0.55);
  max-width: 460px;
  margin: 0 auto;
  letter-spacing: 0.05em;
}

/* ─── ABOUT ─── */
.about-section {
  padding: 12rem 4rem;
  background: var(--dark);
  position: relative;
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.about-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.1);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-image-wrapper:hover .about-portrait {
  transform: scale(1.05);
}
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 2rem;
}
.about-title em {
  font-style: italic;
  color: var(--sand);
}
.about-text {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--stone);
  margin-bottom: 1.5rem;
  max-width: 500px;
}
.about-text strong {
  color: var(--cream);
  font-weight: 400;
}
.about-skills {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245,240,232,0.1);
}
.skills-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.5rem;
}
.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.skills-list li {
  font-size: 0.8rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.skills-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.about-actions {
  margin-top: 3.5rem;
}
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--sand);
  text-decoration: none;
  padding: 1.2rem 3rem;
  transition: background 0.3s, transform 0.3s;
  cursor: none;
}
.btn-primary:hover {
  background: var(--cream);
}

/* ─── SERVICES ─── */
#services {
  padding: 6rem 4rem 10rem;
  background: var(--dark);
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6rem;
  border-top: 1px solid rgba(245,240,232,0.08);
  padding-top: 3rem;
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
}
.services-intro {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--stone);
  max-width: 300px;
  letter-spacing: 0.05em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: none;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.service-card:hover img { transform: scale(1.06); }
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.service-desc {
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(245,240,232,0.55);
  letter-spacing: 0.05em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.service-card:hover .service-desc { max-height: 100px; }

/* ─── PROCESS ─── */
#process {
  padding: 10rem 4rem;
  background: var(--cream);
  color: var(--dark);
}
.process-header { margin-bottom: 6rem; }
.process-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.process-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0; right: 0;
  height: 1px;
  background: rgba(74,63,53,0.15);
}
.step { padding-top: 4rem; position: relative; }
.step-dot {
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(74,63,53,0.12);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--earth);
  margin-bottom: 1rem;
}
.step-desc {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--stone);
  letter-spacing: 0.03em;
}

/* ─── PORTFOLIO STICKY ─── */
#portfolio {
  background: var(--dark);
}
.portfolio-sticky-wrap {
  height: 400vh;
  position: relative;
}
.portfolio-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.portfolio-track {
  display: flex;
  gap: 2px;
  will-change: transform;
}
.portfolio-slide {
  position: relative;
  flex-shrink: 0;
  width: 70vw;
  height: 80vh;
  overflow: hidden;
}
.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-slide-info {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
}
.portfolio-slide-cat {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.portfolio-slide-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
}
.portfolio-header {
  position: absolute;
  top: 50%;
  right: 4rem;
  transform: translateY(-50%);
  text-align: right;
  z-index: 10;
  mix-blend-mode: normal;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 0.95;
}
.portfolio-title em { font-style: italic; color: var(--sand); }

/* ─── TESTIMONIALS ─── */
#testimonials {
  padding: 12rem 4rem;
  background: var(--earth);
  overflow: hidden;
}
.testimonials-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: center;
}
.test-left-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 2rem;
}
.test-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}
.test-big em { font-style: italic; color: var(--sand); }
.testimonial-list { display: flex; flex-direction: column; gap: 3rem; }
.testimonial-item {
  border-top: 1px solid rgba(245,240,232,0.12);
  padding-top: 2.5rem;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-line {
  width: 24px; height: 1px;
  background: var(--sand);
}
.author-name {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

/* ─── CONTACT ─── */
#contact {
  padding: 10rem 4rem;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 2rem;
}
.contact-title em { font-style: italic; color: var(--sand); }
.contact-body {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--stone);
  max-width: 360px;
  margin-bottom: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--sand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.3s;
}
.contact-info a:hover { color: var(--cream); }
.contact-info a::before {
  content: '';
  width: 20px; height: 1px;
  background: currentColor;
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }
.form-group label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.8rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,240,232,0.15);
  padding: 0.8rem 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select option { background: var(--dark); color: var(--cream); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
}
.form-group textarea { resize: none; height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.btn-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--sand);
  border: none;
  padding: 1.1rem 3rem;
  cursor: none;
  transition: background 0.3s, transform 0.3s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--cream); }

/* ─── FOOTER ─── */
footer {
  padding: 3rem 4rem;
  border-top: 1px solid rgba(245,240,232,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(138,121,102,0.5);
}
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-socials a:hover { color: var(--cream); }

/* ─── LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--cream);
  opacity: 0;
  text-align: center;
  margin-left: 0.3em;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(245,240,232,0.1);
  position: relative;
  overflow: hidden;
}
.loader-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ─── SPLIT TEXT CLIP ─── */
.clip-line { overflow: hidden; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .loader-logo { font-size: 1.5rem; }
  nav { padding: 1.5rem 2rem; }
  .nav-links { display: none; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.6rem; }
  #hero { padding: 0 2rem 4rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 8rem); }
  .hero-sub { max-width: 100%; }
  #statement { padding: 6rem 2rem; }
  .statement-text { font-size: clamp(1.8rem, 6vw, 4.5rem); }
  .about-section { padding: 6rem 2rem; }
  .about-container { grid-template-columns: 1fr; gap: 4rem; }
  .about-image-wrapper { aspect-ratio: 1; }
  .portfolio-slide { width: 85vw; height: 65vh; }
  .portfolio-header { right: 2rem; }
  .portfolio-title { font-size: clamp(2.5rem, 8vw, 6rem); }
  #services { padding: 4rem 2rem 6rem; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  #process { padding: 6rem 2rem; }
  .steps { grid-template-columns: 1fr; gap: 3rem; }
  .steps::before { display: none; } /* Ocultar la línea conectora en móvil */
  #testimonials { padding: 6rem 2rem; }
  .testimonials-inner { grid-template-columns: 1fr; gap: 4rem; }
  #contact { padding: 6rem 2rem; grid-template-columns: 1fr; gap: 4rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
