/* ==========================================================
   JAMAN SAS — Design tokens
   ========================================================== */
:root {
  --dark: #0d1117;
  --dark-2: #151b23;
  --dark-3: #1e2732;
  --slate: #4a6b85;
  --slate-2: #5c7f99;
  --slate-light: #a9c0cf;
  --fog: #eef2f5;
  --white: #ffffff;
  --accent: #33607d;
  --accent-2: #8fb4c9;
  --accent-dark: #234a63;

  --font-head: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.16,.84,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
::selection { background: var(--accent); color: var(--white); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--accent-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin: 0 0 20px;
}
.about-text { color: var(--slate-2); font-size: 1.05rem; line-height: 1.75; max-width: 52ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 24px -8px rgba(51,96,125,.6); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(51,96,125,.7); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--slate); transform: translateY(-3px); }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ==========================================================
   Preloader
   ========================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-logo { width: 92px; height: auto; animation: float 2.6s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(51,96,125,.25)); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.preloader-bar { width: 220px; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 2px; }
.preloader-pct { font-family: var(--font-head); font-weight: 700; color: var(--slate-light); font-size: .85rem; letter-spacing: .08em; }

/* Custom cursor */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s;
  mix-blend-mode: difference; opacity: 0;
}
@media (hover:hover) and (pointer:fine) { .cursor-dot { opacity: .9; } }
.cursor-dot.grow { width: 46px; height: 46px; background: rgba(51,96,125,.35); }

/* ==========================================================
   Navbar
   ========================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled { padding: 12px 0; background: rgba(10,13,17,.86); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav-container { max-width: var(--container); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: auto; height: 46px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; color: var(--white); }
.nav-logo-text em { font-style: normal; font-weight: 700; color: var(--accent); font-size: .7em; margin-left: 3px; }
.nav-links { display: flex; gap: 30px; }
.nav-link { position: relative; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.85); padding: 6px 0; }
.nav-link::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--accent); transition: width .35s var(--ease); }
.nav-link:hover::after { width: 100%; }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,10,13,.55) 0%, rgba(8,10,13,.72) 55%, rgba(8,10,13,.94) 100%),
    linear-gradient(90deg, rgba(8,10,13,.75) 0%, rgba(8,10,13,.25) 55%, rgba(8,10,13,.75) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 900px; width: 100%; min-width: 0; margin: 0 auto; padding: 160px 28px 60px; text-align: center; box-sizing: border-box; }
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .85rem; color: var(--accent-2); margin: 0 0 22px;
}
.hero-title { font-family: var(--font-head); font-weight: 900; color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 24px; overflow-wrap: break-word; hyphens: auto; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { color: rgba(255,255,255,.78); font-size: 1.15rem; line-height: 1.7; max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn-ghost svg { transition: transform .3s var(--ease); }
.hero-cta .btn-ghost:hover svg { transform: translateY(3px); }

.hero-stats {
  position: relative; z-index: 3; display: flex; justify-content: center; gap: clamp(30px,6vw,80px);
  padding: 0 28px 56px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--white); }
.hero-stat .lbl { display: block; font-size: .78rem; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 26px; right: 32px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  writing-mode: vertical-rl; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-cue-line { writing-mode: horizontal-tb; width: 1px; height: 46px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue-line i { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent); animation: cueDrop 1.8s ease-in-out infinite; }
@keyframes cueDrop { 0%{top:-100%} 60%{top:100%} 100%{top:100%} }

/* Marquee */
.marquee { background: var(--dark-2); overflow: hidden; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.marquee-track { display: flex; width: max-content; gap: 18px; animation: marqueeMove 32s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: rgba(255,255,255,.4); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span:nth-child(odd) { color: var(--accent); opacity: .8; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================
   About
   ========================================================== */
.about { padding: 130px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(30px,6vw,90px); align-items: center; }
.about-media { position: relative; }
.about-img-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -30px rgba(10,13,17,.4); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-float { position: absolute; width: 46%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; right: -8%; bottom: -8%; border: 6px solid var(--white); box-shadow: 0 24px 50px -20px rgba(10,13,17,.45); }
.about-img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: -6%; top: 10%; background: var(--dark); color: var(--white);
  padding: 16px 20px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.about-badge strong { font-family: var(--font-head); color: var(--accent); font-size: 1.05rem; }
.about-badge span { font-size: .72rem; color: rgba(255,255,255,.65); max-width: 120px; }
.about-points { list-style: none; padding: 0; margin: 26px 0 34px; display: flex; flex-direction: column; gap: 12px; }
.about-points li { display: flex; align-items: center; gap: 12px; color: var(--slate); font-weight: 500; }
.pt-ico { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: rgba(51,96,125,.15); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 900; }

/* ==========================================================
   Services (carousel)
   ========================================================== */
.services { background: var(--dark); padding: 120px 0 130px; overflow: hidden; }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 50px; flex-wrap: wrap; }
.services-head .section-title, .services-head .eyebrow { color: var(--white); }
.services-head .eyebrow { color: var(--accent-2); }
.services-nav { display: flex; gap: 12px; }

.services-swiper { padding: 10px 28px 20px; }
.services-swiper .swiper-slide { width: min(78vw, 420px); }
.service-card {
  position: relative; width: 100%; height: 62vh; min-height: 420px; max-height: 560px;
  border-radius: 20px; overflow: hidden;
  background: var(--dark-3);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--ease), opacity .4s ease; }
.service-card:hover img { transform: scale(1.08); opacity: .75; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,17,.15) 0%, rgba(10,13,17,.92) 85%); }
.service-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px; color: var(--white); }
.service-num { font-family: var(--font-head); font-weight: 900; font-size: .95rem; color: var(--accent); letter-spacing: .08em; }
.service-card-body h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; margin: 8px 0 10px; }
.service-card-body p { color: rgba(255,255,255,.72); font-size: .95rem; line-height: 1.6; max-width: 34ch; }
.service-card-cta { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.service-card-cta-inner { text-align: center; padding: 40px; color: var(--white); }
.service-card-cta-inner h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin: 0 0 10px; }
.service-card-cta-inner p { margin: 0 0 24px; opacity: .8; max-width: 26ch; margin-left: auto; margin-right: auto; }

/* ==========================================================
   Projects (Swiper carousel)
   ========================================================== */
.projects { padding: 130px 0; background: var(--fog); }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 46px; flex-wrap: wrap; }
.projects-nav { display: flex; gap: 12px; }
.proj-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(10,13,17,.15);
  background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--dark); transition: background .3s ease, color .3s ease, transform .3s ease;
}
.proj-btn:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); }
.projects-swiper { padding: 10px 28px 20px; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 24px 50px -24px rgba(10,13,17,.35); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; color: var(--white); background: linear-gradient(180deg, transparent, rgba(8,10,13,.94) 70%); }
.project-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--accent); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.project-card-overlay h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin: 0 0 8px; }
.project-card-overlay p { font-size: .87rem; color: rgba(255,255,255,.78); line-height: 1.55; margin: 0; }

/* ==========================================================
   Process
   ========================================================== */
.process { padding: 130px 0; background: var(--white); }
.process-list { margin-top: 50px; border-top: 1px solid rgba(10,13,17,.1); }
.process-item { display: grid; grid-template-columns: 100px 1fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid rgba(10,13,17,.1); align-items: start; }
.process-index { font-family: var(--font-head); font-weight: 900; font-size: 2.4rem; color: rgba(10,13,17,.14); line-height: 1; }
.process-body h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin: 0 0 10px; }
.process-body p { color: var(--slate-2); max-width: 60ch; line-height: 1.7; margin: 0; }

/* ==========================================================
   CTA Banner
   ========================================================== */
.cta-banner { position: relative; padding: 140px 0; overflow: hidden; }
.cta-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,13,17,.92), rgba(20,28,36,.88)); }
.cta-banner-content { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-banner-content h2 { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 18px; }
.cta-banner-content p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin: 0 0 34px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact { padding: 130px 0; background: var(--fog); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,90px); align-items: start; }
.contact-items { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-national { margin: 18px 4px 0; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--accent-dark); }
.contact-item { display: flex; align-items: center; gap: 16px; background: var(--white); padding: 16px 18px; border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 10px 30px -20px rgba(10,13,17,.2); }
a.contact-item:hover { transform: translateX(6px); box-shadow: 0 16px 30px -18px rgba(10,13,17,.3); }
.contact-ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(51,96,125,.14); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.contact-item span { display: block; font-size: .85rem; color: var(--slate-2); }

.contact-form { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(10,13,17,.25); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { position: relative; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid rgba(10,13,17,.14); border-radius: 12px; padding: 18px 16px 8px;
  font-family: var(--font-body); font-size: .96rem; background: transparent; resize: vertical;
  transition: border-color .3s ease;
}
.form-field select { padding-top: 18px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%2396a5b2' d='M12 15.5 5 8.5l1.4-1.4L12 12.7l5.6-5.6L19 8.5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field label {
  position: absolute; left: 16px; top: 17px; color: var(--slate-light); font-size: .96rem; pointer-events: none;
  transition: transform .2s ease, font-size .2s ease, color .2s ease, top .2s ease;
}
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label, .form-field select:valid + label {
  top: 8px; font-size: .72rem; color: var(--accent-dark); font-weight: 600;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--dark); padding: 90px 0 0; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin: 18px 0 22px; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: background .3s ease, transform .3s ease; }
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer-links h4, .footer-contact h4 { font-family: var(--font-head); color: var(--white); font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .92rem; transition: color .3s ease, transform .3s ease; width: fit-content; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-contact p { margin: 0 0 8px; font-size: .92rem; }
.footer-contact .btn { margin-top: 16px; }
.footer-bottom { padding: 26px 28px; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  animation: pulseWA 2.6s ease-in-out infinite;
}
@keyframes pulseWA { 0%,100%{ box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);} 50%{ box-shadow: 0 12px 30px -4px rgba(37,211,102,.9);} }

/* ==========================================================
   Scroll reveal base states (animated via JS/GSAP)
   ========================================================== */
[data-reveal-line]:not(.hero [data-reveal-line]) {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal-line].is-visible { opacity: 1 !important; transform: translateY(0) !important; }

[data-split-title] .word { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split-title] .word > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
[data-split-title].is-visible .word > span { transform: translateY(0); }

.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.reveal-mask.is-visible { clip-path: inset(0 0 0% 0); }

.process-item.reveal-fade { opacity: 0; transform: translateY(50px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.process-item.reveal-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   Service card "ver fotos" hint
   ========================================================== */
.service-view {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--accent-2);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.service-card:hover .service-view { opacity: 1; transform: translateY(0); }
.service-card { cursor: pointer; }

/* ==========================================================
   Teaser "Nuestros trabajos" (index.html) — enlaza a trabajos.html
   ========================================================== */
.work-teaser { padding: 110px 0; background: var(--fog); }
.work-teaser .about-text { max-width: 62ch; }
.work-teaser-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 40px; }
.work-teaser-item {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1;
  background: var(--dark-3);
}
.work-teaser-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-teaser-item:hover img { transform: scale(1.08); }
.work-teaser-cta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1;
  background: var(--accent-dark); color: var(--white); text-decoration: none;
  transition: transform .4s var(--ease);
}
.work-teaser-cta:hover { transform: translateY(-4px); }
.work-teaser-cta strong { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.work-teaser-cta span { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .03em; }
.work-teaser-btn-wrap { margin-top: 40px; text-align: center; }

/* ==========================================================
   Página de trabajos (trabajos.html): tiles por categoría
   ========================================================== */
.trabajos-hero { padding: 150px 0 50px; background: var(--fog); }
.trabajos-hero .section-title { margin-top: 10px; }
.trabajos-hero .about-text { max-width: 62ch; margin-top: 16px; }
.trabajos-categories { padding: 10px 0 110px; background: var(--fog); }
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile {
  position: relative; border: none; padding: 0; cursor: pointer; text-align: left;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--dark-3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(10,13,17,.35); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; filter: brightness(.68); }
.cat-tile:hover img { transform: scale(1.08); filter: brightness(.55); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,13,17,.75) 100%); }
.cat-tile-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.cat-tile-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--white); }
.cat-tile-count { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--accent-2); margin-top: 4px; }
.cat-tile-all { background: var(--accent-dark); }
.cat-tile-all::after { background: linear-gradient(180deg, rgba(35,74,99,.2) 40%, rgba(10,13,17,.8) 100%); }

.trabajos-detail { padding: 150px 0 110px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--slate-2);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .3s ease, gap .3s ease;
}
.back-btn:hover { color: var(--accent); gap: 12px; }
.category-detail .about-text { max-width: 62ch; margin-bottom: 44px; }
.project-group { margin-top: 46px; }
.project-group-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--dark); margin-bottom: 18px; }
.project-grid { margin-bottom: 0; }

/* ==========================================================
   Galería (grid filtrable, reutilizado en trabajos.html)
   ========================================================== */
.gallery-page { padding: 130px 0 110px; background: var(--fog); }
.gallery-page .about-text { max-width: 62ch; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; margin-bottom: 50px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(10,13,17,.14);
  background: var(--white); color: var(--slate-2); cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.filter-btn span { opacity: .65; font-weight: 600; margin-left: 2px; }
.filter-btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--dark); }
.filter-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.filter-btn.active span { color: var(--accent-2); opacity: 1; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1; background: var(--dark-3);
  animation: galleryIn .5s var(--ease) both;
}
@keyframes galleryIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.gallery-item.is-hidden { display: none; }
.gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: rgba(10,13,17,.55); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-item-tag { opacity: 1; transform: translateY(0); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,13,17,.65) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ==========================================================
   Lightbox
   ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8,10,13,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(1100px, 92vw); max-height: 86vh; margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.lightbox-figure figcaption { color: rgba(255,255,255,.75); font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-align: center; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s ease, transform .3s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { margin-bottom: 20px; max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .work-teaser-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: min(78vw, 320px); height: 100vh; background: var(--dark-2); flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; padding: 40px; transition: right .45s var(--ease); z-index: 60; overflow-y: auto; }
  .nav-links.open { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero-content { padding-top: 130px; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item:nth-child(7n+1) { grid-column: span 1; grid-row: span 1; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox { padding: 16px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work-teaser-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
  .section-title { font-size: 1.7rem; }
  .services-swiper .swiper-slide { width: 84vw; }
  .service-card { height: 56vh; min-height: 360px; }
  .contact-form { padding: 28px 22px; }
  .about-badge { display: none; }
  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: .78rem; }
  .trabajos-hero { padding: 130px 0 30px; }
  .trabajos-detail { padding: 130px 0 80px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 2rem; }
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
