/* =============================================================
   1. Tokens
   ============================================================= */
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sunsive";
  src: url("assets/fonts/Sunsive-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0b0a09;
  --bg-2: #131211;
  --bg-3: #1c1a17;
  --bg-4: #262320;
  --cream: #f5f1ea;
  --cream-2: #c9c2b6;
  --cream-3: #8a8378;

  --ink: #f5f1ea;
  --ink-soft: #c9c2b6;
  --ink-mute: #8a8378;

  --accent: #df6518;
  --accent-2: #e1986d;
  --accent-3: #b94d12;
  --navy: #2b3e61;

  --line-dark: rgba(245, 241, 234, 0.12);
  --line-light: rgba(245, 241, 234, 0.12);

  --sans: "Sunsive", "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius: 18px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-weight: 800; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .9rem;
}
.kicker {
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.2rem;
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1rem; color: var(--cream); }
.section-lede { max-width: 56ch; color: var(--cream-2); font-size: 1.05rem; opacity: .85; }

.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

.grid { display: grid; gap: 1.5rem; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-3));
  color: #1a0e06;
  box-shadow: 0 10px 30px -12px rgba(235, 102, 27, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(235, 102, 27, .7); }
.btn-ghost {
  background: transparent; border: 1.5px solid currentColor; color: inherit;
}
.btn-ghost:hover { background: rgba(235, 102, 27, .1); border-color: var(--accent); }

/* =============================================================
   5. Header / Nav
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(18,17,16,.85), transparent);
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(18, 17, 16, .92);
  backdrop-filter: blur(10px) saturate(140%);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: clamp(140px, 15vw, 180px); height: auto; }

.nav-links { display: none; gap: 2rem; margin-left: 1rem; flex: 1; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--cream-2); position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }

.lang-switch {
  display: flex; align-items: center; gap: .4rem; margin-left: auto;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--cream-3);
}
.lang-switch button {
  padding: .2rem .1rem; color: inherit; transition: color .3s var(--ease-out);
}
.lang-switch button.is-active { color: var(--accent-2); }
.lang-switch button:hover { color: var(--cream); }

.nav-cta { display: none; margin-left: 1.2rem; padding: .65rem 1.3rem; font-size: .85rem; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; margin-left: .5rem; padding: .4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.nav-links-mobile {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg); padding: 6rem var(--gutter) 2rem;
  transform: translateX(100%); transition: transform .45s var(--ease-out);
}
.nav-links-mobile.is-open { transform: translateX(0); }
.nav-links-mobile a { font-size: 1.5rem; font-weight: 700; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 8rem 0 4rem;
  background: radial-gradient(ellipse at 20% -10%, #241d16 0%, var(--bg) 55%);
}
.mouse-glow {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(600px circle at var(--mx, 50vw) var(--my, 40vh), rgba(223, 101, 24, .55), rgba(223, 101, 24, .16) 45%, transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.mouse-glow.is-active { opacity: 1; }
.hero-liquid { position: absolute; inset: 0; z-index: 0; opacity: .8; }
.hero-liquid svg { width: 100%; height: 100%; }
.hero-liquid-small { opacity: .5; }
.wave-band path { filter: drop-shadow(0 0 24px rgba(235,102,27,.25)); }

.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 900; color: var(--cream); }
.hero-title em { font-style: normal; color: var(--accent-2); }
.hero-sub { margin-top: 1.5rem; max-width: 52ch; font-size: 1.15rem; color: var(--cream-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 3rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line-dark);
}
.hero-facts li { font-size: .85rem; color: var(--cream-3); font-weight: 600; }
.hero-facts li::before { content: "— "; color: var(--accent); }

/* =============================================================
   7. Sections light/dark
   ============================================================= */
.section { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg); color: var(--cream); }
.section-dark { background: var(--bg-2); }

/* =============================================================
   8. Services
   ============================================================= */
.grid-services { grid-template-columns: 1fr; margin-top: 3.5rem; gap: 1.75rem; }
@media (min-width: 720px) { .grid-services { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(20,15,8,.35);
  transition: box-shadow .5s var(--ease-out);
}
.service-card:hover { box-shadow: 0 40px 80px -30px rgba(20,15,8,.5); }
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.service-card:hover img { transform: scale(1.07); }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,11,9,0) 40%, rgba(13,11,9,.55) 72%, rgba(13,11,9,.92) 100%);
  transition: opacity .5s var(--ease-out);
}
.service-card:hover::before { opacity: 1.08; }
.service-card-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transform: translateY(6px);
  transition: transform .5s var(--ease-out);
}
.service-card:hover .service-card-overlay { transform: translateY(0); }
.service-card-num {
  display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  color: var(--accent-2); margin-bottom: .6rem;
}
.service-card-overlay h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--cream); margin-bottom: .5rem; }
.service-card-overlay p {
  font-size: .92rem; color: var(--cream-2); max-width: 34ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .4s var(--ease-out);
}
.service-card:hover .service-card-overlay p,
.service-card:focus-within .service-card-overlay p { max-height: 5em; opacity: 1; }
@media (hover: none) {
  .service-card-overlay p { max-height: 5em; opacity: 1; }
}

/* =============================================================
   8b. Proyectos (before/after + gallery)
   ============================================================= */
.before-after { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.before-after img { width: 100%; height: auto; }
.grid-gallery { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line-dark); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-feature { aspect-ratio: 16/10; }
@media (min-width: 720px) { .gallery-item-feature { grid-column: span 2; } }

/* =============================================================
   10. Process
   ============================================================= */
.process-list { margin-top: 3rem; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.process-item { position: relative; padding: 1.8rem 1.6rem 1.8rem 0; border-top: 1px solid var(--line-dark); }
.process-item:nth-child(-n+1) { border-top: 1px solid var(--line-dark); }
.process-step {
  font-size: 2.4rem; font-weight: 900; color: var(--accent);
  -webkit-text-stroke: 1px var(--accent); display: block; margin-bottom: .8rem; opacity: .9;
}
.process-item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.process-item p { font-size: .9rem; color: var(--cream-3); }

/* =============================================================
   13. About
   ============================================================= */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(20,15,8,.35); }
.about-copy p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 56ch; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.credentials {
  margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line-light);
  display: grid; gap: 1rem;
}
.credentials li {
  position: relative; padding-left: 1.6rem; font-size: .95rem; color: var(--ink-soft);
  max-width: 48ch;
}
.credentials li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.credentials li span { font-weight: 700; color: var(--ink); }

/* =============================================================
   14. CTA + Contact form
   ============================================================= */
.section-cta { position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 2; max-width: 720px; }
.contact-form {
  margin-top: 2.5rem; display: grid; gap: 1.2rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .form-row-full { grid-column: 1 / -1; }
}
.form-row { display: flex; flex-direction: column; gap: .5rem; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--cream-3); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-3); border: 1px solid var(--line-dark); border-radius: 10px;
  padding: .8rem 1rem; color: var(--cream); font: inherit; font-size: .95rem;
  transition: border-color .3s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-submit { justify-self: start; margin-top: .5rem; }
.form-success { grid-column: 1 / -1; color: var(--accent-2); font-weight: 700; margin-top: .5rem; }
.contact-alt { margin-top: 2rem; color: var(--cream-3); font-size: .92rem; }
.contact-alt a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   15. Footer
   ============================================================= */
.site-footer { background: #0c0b0a; color: var(--cream-3); padding: 4rem 0 1.5rem; }
.footer-inner { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; align-items: center; }
.footer-logo { width: 160px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a:hover { color: var(--accent-2); }
.footer-contact a { color: var(--accent-2); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand links" "contact contact"; align-items: center; }
}

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { }

/* =============================================================
   17. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-band { animation: none !important; }
  .hero-liquid svg * { animation: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .has-cursor-fx { cursor: auto !important; }
  .has-cursor-fx a, .has-cursor-fx button, .has-cursor-fx .service-card { cursor: pointer !important; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
